Closed BlairAllegroTech closed 8 years ago
As relationship fields in js-data are not enumerable we must instead enumerate the relationships and try to retrieve them from the object.
If relationships exist we can optionally include them in the response if the new options:
return ds.save('author', author.id, { jsonApi: { updateRelationships: true } });
As relationship fields in js-data are not enumerable we must instead enumerate the relationships and try to retrieve them from the object.