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

Function createIssuesCollection

packages/db/tests/query/subquery.test.ts:66–75  ·  view source on GitHub ↗
(autoIndex: `off` | `eager` = `eager`)

Source from the content-addressed store, hash-verified

64]
65
66function createIssuesCollection(autoIndex: `off` | `eager` = `eager`) {
67 return createCollection(
68 mockSyncCollectionOptions<Issue>({
69 id: `subquery-test-issues`,
70 getKey: (issue) => issue.id,
71 initialData: sampleIssues,
72 autoIndex,
73 }),
74 )
75}
76
77function createSubqueryTests(autoIndex: `off` | `eager`): void {
78 describe(`with autoIndex ${autoIndex}`, () => {

Callers 1

createSubqueryTestsFunction · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…