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

Function createTrialsCollection

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

Source from the content-addressed store, hash-verified

190}
191
192function createTrialsCollection(autoIndex: `off` | `eager` = `eager`) {
193 return createCollection(
194 mockSyncCollectionOptions({
195 id: `join-subquery-test-trials`,
196 getKey: (item) => `${item.productId}-${item.userId}`,
197 initialData: sampleTrials,
198 autoIndex,
199 }),
200 )
201}
202
203function createJoinSubqueryTests(autoIndex: `off` | `eager`): void {
204 describe(`with autoIndex ${autoIndex}`, () => {

Callers 1

createJoinSubqueryTestsFunction · 0.85

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…