Skip to content

Commit 3db9990

Browse files
authored
Merge pull request #883 from Paprikas/master
Note on relationships object
2 parents 81ac803 + a21d50a commit 3db9990

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,8 @@ Will get you the following payload by default:
10361036
}
10371037
```
10381038

1039+
Note: When passing `include` and `fields` params together, relationships not included in the `fields` parameter will not be serialized. This will have the side effect of not serializing the included resources. To ensure the related resources are properly side loaded specify them in the `fields`, like `fields[posts]=comments,title&include=comments`.
1040+
10391041
#### Resource Meta
10401042

10411043
Meta information can be included for each resource using the meta method in the resource declaration. For example:

0 commit comments

Comments
 (0)