Created
June 20, 2016 07:21
-
-
Save balinterdi/c6a414cf8849ce724d8ce5e01669355b to your computer and use it in GitHub Desktop.
Eager-fetch belongsTo relationships – does not work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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