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

Code to Serialization Data as JsonApi does not handle relationships correctly #22

Closed
BlairAllegroTech opened this issue Jul 13, 2016 · 1 comment
Milestone

Comments

@BlairAllegroTech
Copy link
Owner

As relationship fields in js-data are not enumerable we must instead enumerate the relationships and try to retrieve them from the object.

@BlairAllegroTech
Copy link
Owner Author

If relationships exist we can optionally include them in the response if the new options:

  • updateRelationships is set. This options defaults to false
return ds.save('author', author.id, { jsonApi: { updateRelationships: true } });

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