angular2-jsonapi icon indicating copy to clipboard operation
angular2-jsonapi copied to clipboard

How to Update To-One Relationships?

Open letsbelopez opened this issue 6 years ago • 1 comments

I'd like to update a To-One Relationship on a record, but can't figure out how to do it.

I want to do what's described here in the JSON Api Spec.

I've tried updating the record described in the docs

I've tried updating record for the relationship described in the docs

But I don't get the PATCH with the correct URL and Body described in the Json Api Spec. Any ideas on what to try next, or is this not a feature of the library yet?

letsbelopez avatar May 10 '19 18:05 letsbelopez

@letsbelopez, can you please give some code examples for your resource definitions? This would make it easier to discuss/solve your problem.

hpawe01 avatar May 28 '19 12:05 hpawe01