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

Function convertInToOr

packages/db/src/query/predicate-utils.ts:58–63  ·  view source on GitHub ↗
(inField: InField)

Source from the content-addressed store, hash-verified

56}
57
58function convertInToOr(inField: InField) {
59 const equalities = inField.values.map(
60 (value) => new Func(`eq`, [inField.ref, new Value(value)]),
61 )
62 return makeDisjunction(equalities)
63}
64
65function isWhereSubsetInternal(
66 subset: BasicExpression<boolean>,

Callers 1

isWhereSubsetInternalFunction · 0.85

Calls 2

makeDisjunctionFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected