On Loopback 3, I can use api for nested queries like these one:
http://localhost/api/ServiceOrders?filter={
"where": { "id" : 4 } ,
"include": [
{ "itemModel" : "itemBrand" },
"itemSize" ]
}
For Loopback4 I am trying...
http://localhost/ServiceOrders?filter={
"where": { "id": 4 },
"include": [
{
"relation": "itemModel",
"scope": {
"include": [ { "relation": "itemBrand"} ]
}
}
]
}
but returns "scope" is not supported
ps: Loopback4 sintax based on Loopback 4 include nested relations post.
thanks, regards