loopback relation to json code example
Example 1: loopback model properties default
...
"prop": {
"type": "boolean",
"required": true,
"default": false
},
...
Example 2: loopback get relationship
var customer = order.customer();
...
"prop": {
"type": "boolean",
"required": true,
"default": false
},
...
var customer = order.customer();