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

Function unionWherePredicates

packages/db/src/query/predicate-utils.ts:297–301  ·  view source on GitHub ↗
(
  predicates: Array<BasicExpression<boolean>>,
)

Source from the content-addressed store, hash-verified

295 * @returns Combined predicate representing the union
296 */
297export function unionWherePredicates(
298 predicates: Array<BasicExpression<boolean>>,
299): BasicExpression<boolean> {
300 return combineWherePredicates(predicates, `or`, unionSameFieldPredicates)
301}
302
303/**
304 * Compute the difference between two where predicates: `fromPredicate AND NOT(subtractPredicate)`.

Callers 2

updateTrackingMethod · 0.85

Calls 1

combineWherePredicatesFunction · 0.85

Tested by

no test coverage detected