From 3df86677086fdf17f454226e199022159cb6cef2 Mon Sep 17 00:00:00 2001 From: John Bower Date: Fri, 25 Oct 2013 16:32:23 -0500 Subject: [PATCH] Added note that objects will not be side-loaded if root is set to false --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0ac37213..b8e9ff61 100644 --- a/README.md +++ b/README.md @@ -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 used to reference them: