I am trying to reference the orders
object with nested ids (using the amazing ng-admin):
{"user":
"id": 1,
"orders": [
{"order_id": 100},
{"order_id": 101}
]}
This is the view definition:
user.showView().fields([
nga.field('orders.id', 'reference_many')
.targetEntity(order)
.targetField('id')
]);
The code above returns the following error:
(state change error: e.targetField(...).name is not a function)
Can someone can help?