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
If this config is set to false, calling `foo.$relatedQuery('bar').insert(obj)` doesn't append the inserted related model to `foo.bar`. The default is false.
488
-
489
443
## `static` uidProp
490
444
491
445
```js
@@ -562,22 +516,6 @@ If this is true only properties in `jsonSchema` are picked when inserting or upd
562
516
563
517
Defaults to false.
564
518
565
-
## `static` defaultEagerAlgorithm
566
-
567
-
::: warning
568
-
Deprecated! Will be removed in version 3.0. Use [withGraphFetched](/api/query-builder/eager-methods.html#withgraphfetched) or [withGraphJoined](/api/query-builder/eager-methods.html#withgraphjoined) explicitly.
Copy file name to clipboardExpand all lines: doc/api/query-builder/eager-methods.md
+1-121Lines changed: 1 addition & 121 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -264,78 +264,6 @@ const people = await Person.query()
264
264
.where('persons.id', '>', 100);
265
265
```
266
266
267
-
## eager()
268
-
269
-
::: warning
270
-
Deprecated! Will be removed in version 3.0. Use [withGraphFetched](/api/query-builder/eager-methods.html#withgraphfetched) or [withGraphJoined](/api/query-builder/eager-methods.html#withgraphjoined) instead.
Deprecated! Will be removed in version 3.0. Use [withGraphFetched](/api/query-builder/eager-methods.html#withgraphfetched) or [withGraphJoined](/api/query-builder/eager-methods.html#withgraphjoined) instead.
Deprecated! Will be removed in version 3.0. Use [withGraphFetched](/api/query-builder/eager-methods.html#withgraphfetched) or [withGraphJoined](/api/query-builder/eager-methods.html#withgraphjoined) instead. You can pass options as the second argument for both methods.
Deprecated! Will be removed in version 3.0. Use [withGraphFetched](/api/query-builder/eager-methods.html#withgraphfetched) instead with [maxBatchSize: 1](/api/types/#type-graphoptions) option.
Deprecated! Will be removed in version 3.0. Use [withGraphFetched](/api/query-builder/eager-methods.html#withgraphfetched) or [withGraphJoined](/api/query-builder/eager-methods.html#withgraphjoined) instead. They merge the graphs by default.
Deprecated! Will be removed in version 3.0. Use [withGraphFetched](/api/query-builder/eager-methods.html#withgraphfetched) or [withGraphJoined](/api/query-builder/eager-methods.html#withgraphjoined) instead. They merge the graphs by default.
Deprecated! Will be removed in version 3.0. Use [withGraphFetched](/api/query-builder/eager-methods.html#withgraphfetched) or [withGraphJoined](/api/query-builder/eager-methods.html#withgraphjoined) instead. They merge the graphs by default.
@@ -490,30 +404,6 @@ Clears all calls to `allowGraph`.
490
404
491
405
Clears all calls to `withGraphFetched` and `withGraphJoined`.
492
406
493
-
## allowEager()
494
-
495
-
::: warning
496
-
Deprecated! Will be removed in version 3.0. Use [allowGraph](/api/query-builder/eager-methods.html#allowgraph) instead. Note that you may need to add [clearAllowGraph](/api/query-builder/eager-methods.html#clearallowgraph) call too. `allowEager` cleared any old expressions automatically, while `allowGraph` merges them.
|[QueryBuilder](/api/query-builder/)|`this` query builder for chaining. |
133
133
134
-
## allowInsert()
135
-
136
-
::: warning
137
-
Deprecated! Will be removed in version 3.0. Use [allowGraph](/api/query-builder/eager-methods.html#allowgraph) instead. Note that you may need to add [clearAllowGraph](/api/query-builder/eager-methods.html#clearallowgraph) call too. `allowInsert` cleared any old expressions automatically, while `allowGraph` merges them.
Exactly like [insertGraph](/api/query-builder/mutate-methods.html#insertgraph) but also fetches the graph from the db after insert. Note that on postgres, you can simply chain [returning('\*')](/api/query-builder/find-methods.html#returning) to the normal `insertGraph` query to get the same result without additional queries.
|[QueryBuilder](/api/query-builder/)|`this` query builder for chaining. |
451
423
452
-
## allowUpsert()
453
-
454
-
::: warning
455
-
Deprecated! Will be removed in version 3.0. Use [allowGraph](/api/query-builder/eager-methods.html#allowgraph) instead. Note that you may need to add [clearAllowGraph](/api/query-builder/eager-methods.html#clearallowgraph) call too. `allowUpsert` cleared any old expressions automatically, while `allowGraph` merges them.
0 commit comments