MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / or

Method or

packages/filter/src/query.ts:331–337  ·  view source on GitHub ↗

* Add an `or` clause. * @param w - One or more where objects

(...w: (Where<MT> | Where<MT>[])[])

Source from the content-addressed store, hash-verified

329 * @param w - One or more where objects
330 */
331 or(...w: (Where<MT> | Where<MT>[])[]): this {
332 let clauses: Where<MT>[] = [];
333 w.forEach(where => {
334 clauses = clauses.concat(Array.isArray(where) ? where : [where]);
335 });
336 return this.add({or: clauses});
337 }
338
339 /**
340 * Add an `=` condition

Callers 3

constrainWhereOrFunction · 0.95
query.unit.tsFile · 0.80

Calls 1

addMethod · 0.95

Tested by

no test coverage detected