function matchQuery(filters, query): boolean;Defined in: packages/query-core/src/utils.ts:175
Checks whether a query matches the given QueryFilters. Every filter that is specified must match; filters that are left unspecified are ignored.
Query<any, any, any, any>
boolean
const queryCache = queryClient.getQueryCache()
const matchingQueries = queryCache
.getAll()
.filter((query) => matchQuery({ queryKey: ['posts'] }, query))