import Ember from 'ember'; export default Ember.Route.extend({ beforeModel() { let data = { data: { id: 1, type: 'person', relationships: { things: { data: [ ] } } }, included: [ {id: 1, type: "thing"}, {id: 2, type: "thing"} ] }; this.store.pushPayload(data); }, model() { let person = this.store.peekRecord('person', 1); let things = this.store.peekAll('thing'); let [thing] = things.toArray(); // set 2 thing on the person to put person.set('things', things); // or this also shows same behaviour // person.get('things').pushObject(thing); let data = { id: 1, type: 'person', relationships: { things: { data: [ {id: 2, type: "thing"} ] } } }; // this will add one thing to the things a person has this.store.pushPayload({data}); return person; } });