I’ve just tried the EmbeddedRecords mixin for the first time and it works flawless!
Yet, do I need to add a serializer for all models in the project, or is there a way to make embedded records the default for any API call?
I tried this on the application
serializer:
export default DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, {
attrs: {
person: { embedded: 'always' }
}
});
But this gives the next warning for any model without a relation with person
:
WARNING: There is no attribute or relationship with the name `person` on `...`. Check your serializers attrs hash.