【发布时间】:2016-05-16 03:52:11
【问题描述】:
我正在尝试使用 API Connect 创建环回:关系?我正在尝试为两个模型创建一个简单的关系。假设第一个模型是客户,第二个模型是订单。我想在客户有很多订单的情况下创建关系。假设我创建了一个包含两个字段名称(字符串)和年龄(数字)的客户模型,并创建了一个包含两个字段描述(字符串)和日期(日期)的订单模型。然后我运行
apic loopback:relation
创建客户“hasMany”订单。我指定以下内容:
Select the model to create the relationship from: Customer
Relation Type :has many
Choose a model to create a relationship with: Order
Enter the property name for the relation: (orders) ERROR undefined
使用旧的 slc 环回似乎可以正常工作,但在 APIC 中却不行。这是一个错误,还是我做错了什么?谢谢!
【问题讨论】:
-
我打开了一张支持票,他们重新创建了错误。他们将这个问题作为一个缺陷来解决。
-
这是通过使用 npm 更新您的 apic 实现来解决的
标签: strongloop apiconnect