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

Method and

packages/filter/src/query.ts:319–325  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

317 * @param w - One or more where objects
318 */
319 and(...w: (Where<MT> | Where<MT>[])[]): this {
320 let clauses: Where<MT>[] = [];
321 w.forEach(where => {
322 clauses = clauses.concat(Array.isArray(where) ? where : [where]);
323 });
324 return this.add({and: clauses});
325 }
326
327 /**
328 * Add an `or` clause.

Callers 2

query.unit.tsFile · 0.80

Calls 1

addMethod · 0.95

Tested by

no test coverage detected