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

Function createUsersCollection

packages/db/tests/query/union-all.test.ts:125–137  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

123}
124
125function createUsersCollection(id: string) {
126 return createCollection(
127 mockSyncCollectionOptions<User>({
128 id,
129 getKey: (user) => user.id,
130 initialData: [
131 { id: 1, name: `Alice` },
132 { id: 2, name: `Bob` },
133 { id: 4, name: `Unmatched` },
134 ],
135 }),
136 )
137}
138
139function createCollectionWithLoadSubsetTracking<T extends object>(
140 id: string,

Callers 1

union-all.test.tsFile · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected