You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -5632,7 +5650,8 @@ function _injectRelations(definition, injected, options) {
5632
5650
* @param {object|array} attrs The item or collection of items to inject into the data store.
5633
5651
* @param {object=} options The item or collection of items to inject into the data store. Properties:
5634
5652
*
5635
-
* - `{boolean=}` - `findBelongsTo` - Find and attach any existing "belongsTo" relationships to the newly injected item. Default: `true`.
5653
+
* - `{boolean=}` - `findBelongsTo` - Find and attach any existing "belongsTo" relationships to the newly injected item. Potentially expensive if enabled. Default: `false`.
5654
+
* - `{boolean=}` - `findHasMany` - Find and attach any existing "hasMany" relationships to the newly injected item. Potentially expensive if enabled. Default: `false`.
5636
5655
*
5637
5656
* @returns {object|array} A reference to the item that was injected into the data store or an array of references to
5638
5657
* the items that were injected into the data store.
@@ -5654,10 +5673,6 @@ function inject(resourceName, attrs, options) {
@@ -213,7 +223,8 @@ function _injectRelations(definition, injected, options) {
213
223
* @param {object|array} attrs The item or collection of items to inject into the data store.
214
224
* @param {object=} options The item or collection of items to inject into the data store. Properties:
215
225
*
216
-
* - `{boolean=}` - `findBelongsTo` - Find and attach any existing "belongsTo" relationships to the newly injected item. Default: `true`.
226
+
* - `{boolean=}` - `findBelongsTo` - Find and attach any existing "belongsTo" relationships to the newly injected item. Potentially expensive if enabled. Default: `false`.
227
+
* - `{boolean=}` - `findHasMany` - Find and attach any existing "hasMany" relationships to the newly injected item. Potentially expensive if enabled. Default: `false`.
217
228
*
218
229
* @returns {object|array} A reference to the item that was injected into the data store or an array of references to
219
230
* the items that were injected into the data store.
@@ -235,10 +246,6 @@ function inject(resourceName, attrs, options) {
0 commit comments