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

Function createPostsCollection

packages/db/tests/query/case-when.test.ts:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49function createPostsCollection() {
50 return createCollection(
51 mockSyncCollectionOptions<Post>({
52 id: `case-when-posts`,
53 getKey: (post) => post.id,
54 initialData: samplePosts,
55 }),
56 )
57}
58
59function stripVirtualPropsAndSymbols(value: any): any {
60 if (Array.isArray(value)) {

Callers 1

case-when.test.tsFile · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected