I’m using Ember.js 2.7 and Ember Data 2.8 I have model User which has reference one-to-one UserMetum and has reference has-many Specializations. I have edit user form which affects to these three models. During saving I have a trouble how serialize in right way. First way. It’s adding attributes to relationships. I found lib frank06/ember-data-save-relationships for this way. But it doesn’t correspond to JSON-API specification. Second way. It’s serializing each model and send it to API. But it requires redundant requests to API server. Third way. Your’s?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Saving models and their relationships using the new Ember Data JSONAPISerializer/Adapter | 9 | 4661 | July 28, 2017 | |
Best practices with many to many relationships in JsonAPI | 7 | 2196 | June 2, 2020 | |
Ember-Data beta 3 and saving hasMany relationships with ActiveModelSerializer and Rails | 0 | 2287 | October 30, 2013 | |
Problems saving relationships using the Django Rest Framework | 13 | 2297 | February 7, 2019 | |
Serialize to JSON including all relationships and their attributes using new JSON-API Serializer | 2 | 2231 | July 19, 2015 |