Is there a way to have Potion return an inline collection of json objects, instead of returing JSON Hyperschema references?
E.g. my current code is returning this:
{
"$uri": "/worker/1",
"mobile_number": null,
"name": "Ben",
"password": "Ben",
"rosters": [
{
"$ref": "/roster/1"
}
]
}
But I would like it to return
{
"$uri": "/worker/1",
"mobile_number": null,
"name": "Ben",
"password": "Ben",
"rosters": [
{
"$uri": "/roster/1",
"name": "21"
}
]
}
So basically to eager load all the oneToMany roster objects and inline them in the JSON? Basically to avoid having to do multiple calls back to the server to lazily load the $ref documents?