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

Function createMembersCollection

packages/db/tests/query/includes.test.ts:934–942  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

932 }
933
934 function createMembersCollection() {
935 return createCollection(
936 mockSyncCollectionOptions<Member>({
937 id: `includes-members`,
938 getKey: (m) => m.id,
939 initialData: sampleMembers,
940 }),
941 )
942 }
943
944 it(`multiple parents with the same correlationKey each get the shared children`, async () => {
945 const teams = createTeamsCollection()

Callers 1

includes.test.tsFile · 0.85

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected