MCPcopy Index your code
hub / github.com/TanStack/db / createUsersCollection

Function createUsersCollection

packages/db/tests/query/join.test.ts:52–61  ·  view source on GitHub ↗
(autoIndex: `off` | `eager` = `eager`)

Source from the content-addressed store, hash-verified

50]
51
52function createUsersCollection(autoIndex: `off` | `eager` = `eager`) {
53 return createCollection(
54 mockSyncCollectionOptions<User>({
55 id: `test-users`,
56 getKey: (user) => user.id,
57 initialData: sampleUsers,
58 autoIndex,
59 }),
60 )
61}
62
63function createDepartmentsCollection(autoIndex: `off` | `eager` = `eager`) {
64 return createCollection(

Callers 2

testJoinTypeFunction · 0.70
createJoinTestsFunction · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…