Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Included" related resources are wiped if server does not support compound documents #207

Open
jhash opened this issue Dec 11, 2019 · 0 comments

Comments

@jhash
Copy link

jhash commented Dec 11, 2019

From: https://jsonapi.org/format/#document-compound-documents

To reduce the number of HTTP requests, servers MAY allow responses that include related resources along with the requested primary resources. Such responses are called “compound documents”.

Our server is one that doesn't (yet) support compound documents and the nested arrays of related resources are returning empty even though under relationships there are a few of them. I would expect that the objects are still included in the serialized final parent object but they just have the bare minimum of id defined. What do you think?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant