ra-jsonapi-client icon indicating copy to clipboard operation
ra-jsonapi-client copied to clipboard

Modifying relationships

Open shadowhand opened this issue 6 years ago • 1 comments

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

shadowhand avatar Feb 23 '19 19:02 shadowhand

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 avatar Mar 02 '19 12:03 henvo