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/react/guides/filters.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ A query filter object supports the following properties:
41
41
- When set to `paused` it will match queries that wanted to fetch, but have been `paused`.
42
42
- When set to `idle` it will match queries that are not fetching.
43
43
-`predicate?: (query: Query) => boolean`
44
-
- This predicate function will be called for every single query in the cache and be expected to return truthy for queries that are `found`.
44
+
- This predicate function will be used as a final filter on all matching queries. If no other filters are specified, this function will be evaluated against every query in the cache.
A mutation filter object supports the following properties:
64
64
65
+
-`mutationKey?: MutationKey`
66
+
- Set this property to define a mutation key to match on.
65
67
-`exact?: boolean`
66
68
- If you don't want to search mutations inclusively by mutation key, you can pass the `exact: true` option to return only the mutation with the exact mutation key you have passed.
67
69
-`fetching?: boolean`
68
70
- When set to `true` it will match mutations that are currently fetching.
69
71
- When set to `false` it will match mutations that are not fetching.
70
72
-`predicate?: (mutation: Mutation) => boolean`
71
-
- This predicate function will be called for every single mutation in the cache and be expected to return truthy for mutations that are `found`.
72
-
-`mutationKey?: MutationKey`
73
-
- Set this property to define a mutation key to match on.
73
+
- This predicate function will be used as a final filter on all matching mutations. If no other filters are specified, this function will be evaluated against every mutation in the cache.
0 commit comments