You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I am missing the point... but I don't understand how, why or when the root option works – I am putting it in all sorts of places, on get/post, on namespaces/resources, on CollectionSerializer constructs... and it is never doing what I expect.
I am expecting root: 'user' to change output from:
{
"name": "steve"
}
to
{
"user": {
"name": "steve"
}
}
or at the very least to do that on collections given that's what it appears to be aimed at – so users on an array in that case
I see past issues that this changed at some point, is there documentation missing around this?
The text was updated successfully, but these errors were encountered:
Maybe I am missing the point... but I don't understand how, why or when the
root
option works – I am putting it in all sorts of places, onget/post
, onnamespaces/resources
, onCollectionSerializer
constructs... and it is never doing what I expect.I am expecting
root: 'user'
to change output from:to
or at the very least to do that on collections given that's what it appears to be aimed at – so
users
on an array in that caseI see past issues that this changed at some point, is there documentation missing around this?
The text was updated successfully, but these errors were encountered: