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

Provide additional information to shouldIncludeLinkageData() #550

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

psbanka
Copy link

@psbanka psbanka commented Jul 9, 2020

Some server implementations will not serialize all included relationships because this would make for a very large payload.

This PR provides a fix for #548 by adding an isIncludedResource flag when calling shouldIncludeLinkageData. This allows the developer of a mirage implementation to know whether or not an included resource is being requested and can therefore make a decision as to whether or not to serialize that as well.

- add `descendant` flag when calling `shouldIncludeLinkageData` to
provide information with regards to the depth of serialization being
requested
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

Successfully merging this pull request may close these issues.

None yet

1 participant