Skip to content

Instantly share code, notes, and snippets.

@balinterdi balinterdi/route.js
Created Jun 20, 2016

Embed
What would you like to do?
Eager-fetch belongsTo relationships – does not work
model(params) {
return this.store.findRecord('person', params.person_id)
.then((person) => {
return {
friendships: person.get('friendships', { include: 'friender,friended' }),
person
}});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.