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

Function createIssuesCollection

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

Source from the content-addressed store, hash-verified

146]
147
148function createIssuesCollection(autoIndex: `off` | `eager` = `eager`) {
149 return createCollection(
150 mockSyncCollectionOptions<Issue>({
151 id: `join-subquery-test-issues`,
152 getKey: (issue) => issue.id,
153 initialData: sampleIssues,
154 autoIndex,
155 }),
156 )
157}
158
159function createUsersCollection(autoIndex: `off` | `eager` = `eager`) {
160 return createCollection(

Callers 1

createJoinSubqueryTestsFunction · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected