Hi.
I have implemented a JSON-API backend and I’m using ember (1.13.4) and ember data (1.13.5) to pull my data in to the store. All is working well and the store is populated with all of the models and their attributes/relationships.
However, I need to serialize my models to JSON in order to pass them to an external library (datatables.net) and have them displayed in a table. When I do the serialization I see all of my attributes and relationships but the relationships are not embedded so I don’t see any of the relationship’s attributes. Instead I just get an id and type within each relationship.
Is there an easy way of telling the serializer that I want all of the relationships to be embedded (or included in JSON-API parlance) or do I have to do it manually by modifying the “serialize”, “serializeBelongsTo” or “serializeHasMany” hooks?
Any guidance would be appreciated.
Thanks.