MCPcopy Create free account
hub / github.com/TanStack/db / isCategory

Function isCategory

packages/query-db-collection/tests/query.test.ts:3822–3830  ·  view source on GitHub ↗
(category: `A` | `B` | `C`, where: any)

Source from the content-addressed store, hash-verified

3820
3821 describe(`Query Garbage Collection`, () => {
3822 const isCategory = (category: `A` | `B` | `C`, where: any) => {
3823 return (
3824 where &&
3825 where.type === `func` &&
3826 where.name === `eq` &&
3827 where.args[0].path[0] === `category` &&
3828 where.args[1].value === category
3829 )
3830 }
3831
3832 it(`should delete all rows when a single query is garbage collected`, async () => {
3833 const queryKey = [`single-query-gc-test`]

Callers 1

query.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected