문제

I use new loopback, in my models.json :

"customer": { "options": { "extend": "User" }, "properties": {} }

But after run and explore, the customer model isn't extend user.

도움이 되었습니까?

해결책

"base" should be used instead of "extend". See docs.

"user": {
  "options": {
    "base": "User",
 },
 "properties": {}
}

We could consider to support both "base" and "extend".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top