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

Function createDepartmentsCollection

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

Source from the content-addressed store, hash-verified

61}
62
63function createDepartmentsCollection(autoIndex: `off` | `eager` = `eager`) {
64 return createCollection(
65 mockSyncCollectionOptions<Department>({
66 id: `test-departments`,
67 getKey: (dept) => dept.id,
68 initialData: sampleDepartments,
69 autoIndex,
70 }),
71 )
72}
73
74// Join types to test
75const joinTypes = [`inner`, `left`, `right`, `full`] as const

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…