Вопрос

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