Skip to content

Instantly share code, notes, and snippets.

@balinterdi
Created June 20, 2016 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balinterdi/c6a414cf8849ce724d8ce5e01669355b to your computer and use it in GitHub Desktop.
Save balinterdi/c6a414cf8849ce724d8ce5e01669355b to your computer and use it in GitHub Desktop.
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