@@ -1257,7 +1257,7 @@ export class Store extends BaseClass {
12571257 ```app/routes/post.js
12581258 export default class PostRoute extends Route {
12591259 model(params) {
1260- return this.store.findRecord('post', params.post_id, { include: 'comments' });
1260+ return this.store.findRecord('post', params.post_id, { include: [ 'comments'] });
12611261 }
12621262 }
12631263 ```
@@ -1284,15 +1284,17 @@ export class Store extends BaseClass {
12841284 In this case, the post's comments would then be available in your template as
12851285 `model.comments`.
12861286
1287- Multiple relationships can be requested using an `include` parameter consisting of a
1288- comma-separated list (without white-space) while nested relationships can be specified
1289- using a dot-separated sequence of relationship names. So to request both the post's
1287+ Multiple relationships can be requested using an `include` parameter consisting
1288+ of a list of relationship names, while nested relationships can be specified using a
1289+ dot-separated sequence of relationship names. So to request both the post's
12901290 comments and the authors of those comments the request would look like this:
12911291
12921292 ```app/routes/post.js
12931293 export default class PostRoute extends Route {
12941294 model(params) {
1295- return this.store.findRecord('post', params.post_id, { include: 'comments,comments.author' });
1295+ return this.store.findRecord('post', params.post_id, {
1296+ include: ['comments', 'comments.author']
1297+ });
12961298 }
12971299 }
12981300 ```
@@ -1909,19 +1911,19 @@ export class Store extends BaseClass {
19091911 ```app/routes/posts.js
19101912 export default class PostsRoute extends Route {
19111913 model() {
1912- return this.store.findAll('post', { include: 'comments' });
1914+ return this.store.findAll('post', { include: [ 'comments'] });
19131915 }
19141916 }
19151917 ```
19161918 Multiple relationships can be requested using an `include` parameter consisting of a
1917- comma-separated list (without white-space) while nested relationships can be specified
1919+ list of relationship names, while nested relationships can be specified
19181920 using a dot-separated sequence of relationship names. So to request both the posts'
19191921 comments and the authors of those comments the request would look like this:
19201922
19211923 ```app/routes/posts.js
19221924 export default class PostsRoute extends Route {
19231925 model() {
1924- return this.store.findAll('post', { include: 'comments, comments.author' });
1926+ return this.store.findAll('post', { include: [ 'comments', ' comments.author'] });
19251927 }
19261928 }
19271929 ```
0 commit comments