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

Modifying relationships #10

Open
shadowhand opened this issue Feb 23, 2019 · 1 comment
Open

Modifying relationships #10

shadowhand opened this issue Feb 23, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@shadowhand
Copy link

The current implementation doesn't handle modifying resources that have relations, because it submits related references in data.attributes instead of data.relationships.

For instance, assigning a post to an author should submit something like:

{data: {type: "posts", attributes: { ... }, relationships: {author: {data: {id: "1"}}}}

Refs #8

@henvo
Copy link
Owner

henvo commented Mar 2, 2019

Hey @shadowhand thank you for your input!

I will have a look into this as soon as I have some time left.

But nonetheless pull requests are always welcome!

@henvo henvo added enhancement New feature or request help wanted Extra attention is needed labels Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants