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

Function createProductsCollection

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

Source from the content-addressed store, hash-verified

179}
180
181function createProductsCollection(autoIndex: `off` | `eager` = `eager`) {
182 return createCollection(
183 mockSyncCollectionOptions({
184 id: `join-subquery-test-products`,
185 getKey: (product) => product.id,
186 initialData: sampleProducts,
187 autoIndex,
188 }),
189 )
190}
191
192function createTrialsCollection(autoIndex: `off` | `eager` = `eager`) {
193 return createCollection(

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…