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

Function and

packages/db/src/query/builder/functions.ts:212–222  ·  view source on GitHub ↗
(
  left: ExpressionLike,
  right: ExpressionLike,
  ...rest: Array<ExpressionLike>
)

Source from the content-addressed store, hash-verified

210 ...rest: Array<ExpressionLike>
211): BasicExpression<boolean>
212export function and(
213 left: ExpressionLike,
214 right: ExpressionLike,
215 ...rest: Array<ExpressionLike>
216): BasicExpression<boolean> {
217 const allArgs = [left, right, ...rest]
218 return new Func(
219 `and`,
220 allArgs.map((arg) => toExpression(arg)),
221 )
222}
223
224// Overloads for or() - support 2 or more arguments
225export function or(

Callers 14

query.test-d.tsFile · 0.90
indexes.test.tsFile · 0.90
loadSubsetFunction · 0.90
electric.test-d.tsFile · 0.90
requestSnapshotMethod · 0.50
buildCursorFunction · 0.50

Calls 2

toExpressionFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected