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

Function or

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

Source from the content-addressed store, hash-verified

232 ...rest: Array<ExpressionLike>
233): BasicExpression<boolean>
234export function or(
235 left: ExpressionLike,
236 right: ExpressionLike,
237 ...rest: Array<ExpressionLike>
238): BasicExpression<boolean> {
239 const allArgs = [left, right, ...rest]
240 return new Func(
241 `or`,
242 allArgs.map((arg) => toExpression(arg)),
243 )
244}
245
246export function not(value: ExpressionLike): BasicExpression<boolean> {
247 return new Func(`not`, [toExpression(value)])

Callers 9

query.test.tsFile · 0.90
loadSubsetFunction · 0.90
unloadSubsetFunction · 0.90
indexes.test.tsFile · 0.90
buildCursorFunction · 0.50

Calls 2

toExpressionFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected