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
Copy file name to clipboardExpand all lines: docs/composition-api.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,7 @@ And here's a look at each individual property:
119
119
- Set `params.paginate` to `true` to turn off realtime updates for the results and defer pagination to the API server. Pagination works the same as for the [makeFindMixin pagination](./mixins.html#pagination-with-fall-through-cacheing).
120
120
- Set `params.debounce` to an integer and the API requests will automatically be debounced by that many milliseconds. For example, setting `debounce: 1000` will assure that the API request will be made at most every 1 second.
121
121
- Set `params.temps` to `true` to include temporary (local-only) items in the results. Temporary records are instances that have been created but not yet saved to the database.
122
+
- Set `params.copies` to `true` to include cloned items in the results. The queried items get replaced with the corresponding copies from `copiesById`
122
123
-`fetchParams` This is a separate set of params that, when provided, will become the params sent to the API server. The `params` will then only be used to query data from the local data store.
123
124
- Explicitly returning `null` will prevent an API request from being made.
124
125
-`queryWhen` must be a `computed` property which returns a `boolean`. It provides a logical separation for preventing API requests *outside* of the `params`.
Copy file name to clipboardExpand all lines: docs/service-plugin.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,10 @@ Service modules include the following getters:
199
199
200
200
-`list {Array}` - an array of items. The array form of `keyedById` Read only.
201
201
-`find(params) {Function}` - a helper function that allows you to use the [Feathers Adapter Common API](https://docs.feathersjs.com/api/databases/common) and [Query API](https://docs.feathersjs.com/api/databases/querying) to pull data from the store. This allows you to treat the store just like a local Feathers database adapter (but without hooks).
202
-
-`params {Object}` - an object with a `query` object and optional `paginate` and `temps` boolean properties. The `query` is in the FeathersJS query format. You can set `params.paginate` to `false` to disable pagination for a single request.
202
+
-`params {Object}` - an object with a `query` object and optional properties. You can set the following properties:
203
+
-`params.query {Boolean}` - The `query` is in the FeathersJS query format.
204
+
-`params.temps {Boolean}` - **Default:**`false` - if `true` also consider temporary records from `tempsById`
205
+
-`params.copies {Boolean}` - **Default:**`false` - if `true`: first search for the regular records and then replace the records with the related copies from `copiesById`
203
206
-`count(params) {Function}` - a helper function that counts items in the store matching the provided query in the params and returns this number <Badgetext="3.12.0+" />
204
207
-`params {Object}` - an object with a `query` object and an optional `temps` boolean property.
205
208
-`get(id[, params]) {Function}` - a function that allows you to query the store for a single item, by id. It works the same way as `get` requests in Feathers database adapters.
0 commit comments