Added note that objects will not be side-loaded if root is set to false

This commit is contained in:
John Bower 2013-10-25 16:32:23 -05:00
parent 74374ae5af
commit 3df8667708

View File

@ -547,6 +547,10 @@ this:
} }
``` ```
When side-loading data, your serializer cannot have the `{ root: false }` option,
as this would lead to invalid JSON. If you do not have a root key, the `include`
instruction will be ignored
You can also specify a different root for the embedded objects than the key You can also specify a different root for the embedded objects than the key
used to reference them: used to reference them: