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

Function buildQuery

packages/db/src/query/builder/index.ts:1379–1384  ·  view source on GitHub ↗
(
  fn: (builder: InitialQueryBuilder) => QueryBuilder<TContext>,
)

Source from the content-addressed store, hash-verified

1377// Internal function to build a query from a callback
1378// used by liveQueryCollectionOptions.query
1379export function buildQuery<TContext extends Context>(
1380 fn: (builder: InitialQueryBuilder) => QueryBuilder<TContext>,
1381): QueryIR {
1382 const result = fn(new BaseQueryBuilder())
1383 return getQueryIR(result)
1384}
1385
1386// Internal function to get the QueryIR from a builder
1387export function getQueryIR(

Callers 2

buildQueryFromConfigFunction · 0.85
buildQuery.test.tsFile · 0.85

Calls 2

fnFunction · 0.85
getQueryIRFunction · 0.85

Tested by

no test coverage detected