Skip to content

Commit 9d48539

Browse files
authored
Note on relationships object
1 parent 74cd0a9 commit 9d48539

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,9 @@ Will get you the following payload by default:
10361036
}
10371037
```
10381038

1039+
Note: When passing `include` with `fields` params, `relationships` object does not return.
1040+
To include it, add `fields[posts]=comments` to request.
1041+
10391042
#### Resource Meta
10401043

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

0 commit comments

Comments
 (0)