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

Function createDepartmentsCollection

packages/db/tests/query/order-by.test.ts:232–241  ·  view source on GitHub ↗
(autoIndex: `off` | `eager` = `eager`)

Source from the content-addressed store, hash-verified

230}
231
232function createDepartmentsCollection(autoIndex: `off` | `eager` = `eager`) {
233 return createCollection(
234 mockSyncCollectionOptions<Department>({
235 id: `test-departments`,
236 getKey: (department) => department.id,
237 initialData: departmentData,
238 autoIndex,
239 }),
240 )
241}
242
243function createEmployeesWithNullableCollection(
244 autoIndex: `off` | `eager` = `eager`,

Callers 1

createOrderByTestsFunction · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected