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

Function createEmployeesCollection

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

Source from the content-addressed store, hash-verified

219]
220
221function createEmployeesCollection(autoIndex: `off` | `eager` = `eager`) {
222 return createCollection(
223 mockSyncCollectionOptions<Employee>({
224 id: `test-employees`,
225 getKey: (employee) => employee.id,
226 initialData: employeeData,
227 autoIndex,
228 }),
229 )
230}
231
232function createDepartmentsCollection(autoIndex: `off` | `eager` = `eager`) {
233 return createCollection(

Callers 1

createOrderByTestsFunction · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected