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

Function makeTeamsCollection

packages/db/tests/query/join-subquery.test.ts:883–892  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

881
882 // `teams.id` is indexed; `members` has no index.
883 const makeTeamsCollection = () =>
884 createCollection(
885 mockSyncCollectionOptions<Team>({
886 id: `lazy-join-teams`,
887 getKey: (r) => r.id,
888 autoIndex: `eager`,
889 defaultIndexType: BTreeIndex,
890 initialData: [{ id: `t1` }],
891 }),
892 )
893 const makeMembersCollection = () =>
894 createCollection(
895 mockSyncCollectionOptions<Member>({

Callers 1

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected