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

Function createCommentsCollection

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

Source from the content-addressed store, hash-verified

77}
78
79function createCommentsCollection() {
80 return createCollection(
81 mockSyncCollectionOptions<Comment>({
82 id: `includes-comments`,
83 getKey: (c) => c.id,
84 initialData: sampleComments,
85 }),
86 )
87}
88
89/**
90 * Extracts child collection items as a sorted plain array for comparison.

Callers 1

includes.test.tsFile · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected