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

Function createChunksCollection

packages/db/tests/query/union-all.test.ts:111–123  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

109}
110
111function createChunksCollection(id: string) {
112 return createCollection(
113 mockSyncCollectionOptions<Chunk>({
114 id,
115 getKey: (chunk) => chunk.id,
116 initialData: [
117 { id: 1, messageId: 1, text: `hello` },
118 { id: 2, messageId: 1, text: `world` },
119 { id: 3, messageId: 2, text: `hidden` },
120 ],
121 }),
122 )
123}
124
125function createUsersCollection(id: string) {
126 return createCollection(

Callers 1

union-all.test.tsFile · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected