guides icon indicating copy to clipboard operation
guides copied to clipboard

Docs on sideloading relationships

Open myartsev opened this issue 7 years ago • 0 comments

If you guys agree that this belongs in the guides, I think it'd be helpful to have info on how to sideload relationships:

let blogPost = this.get('store').findRecord('blog-post', 1, { include: 'comments' });

https://guides.emberjs.com/v2.15.0/models/finding-records/

Perhaps it would also be interesting to update the data models used in the tutorial with a relationship that is sideloaded (e.g. a component that shows reviews for each rental). Just a little something to further illustrate the power of JSONAPI + Ember data.

myartsev avatar Sep 25 '17 02:09 myartsev