Is the DS.EmbeddedRecordsMixin compatible with the JsonApiAdapter & JsonApiSerializer?


#1

I’m using Ember 1.13.4 & Ember data 1.13.5 with Ember CLI. I am using the default JsonApiAdapter & serializer & noticed that when I use the DS.EmbeddedRecordsMixin with the serializer although I get the “included” key in the payload the “attributes” key contains all null values & instead the attributes appear at the root of the payload. This invalidates the json-api format.

Should the mixin actually work with json-api or should I avoid it?

Thanks.


#2

This was just fixed and released https://github.com/emberjs/data/pull/3550


#3

Thanks for the reply.

I wasn’t very clear in my post but I get the “included” key & the records within it. But, I found that although the root “attributes” key correctly contained the model record, all of the model field values were null.