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

Function createUsersCollection

packages/db/tests/query/join.test-d.ts:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24type DepartmentRow = OutputWithVirtual<Department>
25
26function createUsersCollection() {
27 return createCollection(
28 mockSyncCollectionOptions<User>({
29 id: `test-users`,
30 getKey: (user) => user.id,
31 initialData: [],
32 }),
33 )
34}
35
36function createDepartmentsCollection() {
37 return createCollection(

Callers 1

join.test-d.tsFile · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected