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

Function createMessagesCollection

packages/db/tests/query/select-spread.test.ts:19–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17]
18
19function createMessagesCollection() {
20 return createCollection(
21 mockSyncCollectionOptions<Message>({
22 id: `messages-select-spread`,
23 getKey: (m) => m.id,
24 initialData: initialMessages,
25 }),
26 )
27}
28
29// Nested message shape for deeper spread tests
30interface MessageWithMeta extends Message {

Callers 1

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected