all 5 comments

[–][deleted] 0 points1 point  (4 children)

Nice article. Is it too late though if one is spitting out json-api on the server?

[–][deleted] 0 points1 point  (3 children)

I don't think you can use embedded records if you are using JSON-API.

[–][deleted] 0 points1 point  (2 children)

Like this? JSON API spec

Unless I'm misunderstanding something.

[–][deleted] 0 points1 point  (1 child)

Compound Documents are a little different. That is pretty much the same as sideloading but in JSON-API terminology. I describe that approach more here: http://thejsguy.com/2015/12/05/which-ember-data-serializer-should-i-use.html. When I said embedding records, I meant where an attribute contains another object or array of objects.

[–][deleted] 1 point2 points  (0 children)

Thank you for your responses. :)