@ember-data-types/store 5.4.0-alpha.112 → 5.4.0-alpha.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-reference.d.ts","sourceRoot":"","sources":["../../../src/-private/legacy-model-support/record-reference.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF;;EAEE;AACF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAEvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;EAEE;AAEF;;;;;;EAME;AACF,MAAM,CAAC,OAAO,OAAO,eAAe;IAC1B,KAAK,EAAE,KAAK,CAAC;IAErB,QAAQ,EAAG,MAAM,CAAC;IAClB,aAAa,EAAE,sBAAsB,CAAC;IAE9B,IAAI,EAAE,MAAM,CAAC;gBAET,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,sBAAsB;IAa5D,OAAO;IAIP,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;;;;;;;;;;;;;MAiBE;IACF,EAAE;
|
|
1
|
+
{"version":3,"file":"record-reference.d.ts","sourceRoot":"","sources":["../../../src/-private/legacy-model-support/record-reference.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF;;EAEE;AACF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAEvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;EAEE;AAEF;;;;;;EAME;AACF,MAAM,CAAC,OAAO,OAAO,eAAe;IAC1B,KAAK,EAAE,KAAK,CAAC;IAErB,QAAQ,EAAG,MAAM,CAAC;IAClB,aAAa,EAAE,sBAAsB,CAAC;IAE9B,IAAI,EAAE,MAAM,CAAC;gBAET,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,sBAAsB;IAa5D,OAAO;IAIP,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;;;;;;;;;;;;;MAiBE;IACF,EAAE;IAMF;;;;;;;;;;;;;;;;;MAiBE;IACF,UAAU,IAAI,sBAAsB;IAIpC;;;;;;;;;;;;;;;;MAgBE;IACF,UAAU,IAAI,UAAU;IAIxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCE;IACF,IAAI,CAAC,eAAe,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAO9G;;;;;;;;;;;;;;;;MAgBE;IACF,KAAK,IAAI,oBAAoB,GAAG,IAAI;IAIpC;;;;;;;;;;;;;;;;MAgBE;IACF,IAAI;IAQJ;;;;;;;;;;;;;;;;MAgBE;IACF,MAAM;CAOP"}
|
|
@@ -773,7 +773,7 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
773
773
|
```app/routes/post.js
|
|
774
774
|
export default class PostRoute extends Route {
|
|
775
775
|
model(params) {
|
|
776
|
-
return this.store.findRecord('post', params.post_id, { include: 'comments' });
|
|
776
|
+
return this.store.findRecord('post', params.post_id, { include: ['comments'] });
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
```
|
|
@@ -801,14 +801,14 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
801
801
|
`model.comments`.
|
|
802
802
|
|
|
803
803
|
Multiple relationships can be requested using an `include` parameter consisting of a
|
|
804
|
-
|
|
804
|
+
list of relationship names, while nested relationships can be specified
|
|
805
805
|
using a dot-separated sequence of relationship names. So to request both the post's
|
|
806
806
|
comments and the authors of those comments the request would look like this:
|
|
807
807
|
|
|
808
808
|
```app/routes/post.js
|
|
809
809
|
export default class PostRoute extends Route {
|
|
810
810
|
model(params) {
|
|
811
|
-
return this.store.findRecord('post', params.post_id, { include: 'comments,comments.author' });
|
|
811
|
+
return this.store.findRecord('post', params.post_id, { include: ['comments','comments.author'] });
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
```
|
|
@@ -1265,19 +1265,19 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1265
1265
|
```app/routes/posts.js
|
|
1266
1266
|
export default class PostsRoute extends Route {
|
|
1267
1267
|
model() {
|
|
1268
|
-
return this.store.findAll('post', { include: 'comments' });
|
|
1268
|
+
return this.store.findAll('post', { include: ['comments'] });
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
```
|
|
1272
1272
|
Multiple relationships can be requested using an `include` parameter consisting of a
|
|
1273
|
-
|
|
1273
|
+
list or relationship names, while nested relationships can be specified
|
|
1274
1274
|
using a dot-separated sequence of relationship names. So to request both the posts'
|
|
1275
1275
|
comments and the authors of those comments the request would look like this:
|
|
1276
1276
|
|
|
1277
1277
|
```app/routes/posts.js
|
|
1278
1278
|
export default class PostsRoute extends Route {
|
|
1279
1279
|
model() {
|
|
1280
|
-
return this.store.findAll('post', { include: 'comments,comments.author' });
|
|
1280
|
+
return this.store.findAll('post', { include: ['comments','comments.author'] });
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
1283
|
```
|