Defined in: packages/query-core/src/utils.ts:31
Filters used to select queries, for example in queryClient.getQueriesData or queryClient.invalidateQueries. All provided filters must match; filters that are left unspecified are ignored.
TQueryKey extends QueryKey = QueryKey
| Property | Type | Default value | Description |
|---|---|---|---|
| exact? | boolean | undefined | Match query key exactly |
| fetchStatus? | "fetching" | "paused" | "idle" | undefined | Include queries matching their fetchStatus |
| predicate? | (query: Query) => boolean | undefined | Include queries matching this predicate function |
| queryKey? | TQueryKey | TuplePrefixes<TQueryKey> | undefined | Include queries matching this query key |
| stale? | boolean | undefined | Include or exclude stale queries |
| type? | QueryTypeFilter | 'all' | Filter to active queries, inactive queries or all queries |