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

Method add

packages/filter/src/query.ts:288–301  ·  view source on GitHub ↗
(w: Where<MT>)

Source from the content-addressed store, hash-verified

286 }
287
288 private add(w: Where<MT>): this {
289 for (const k of Object.keys(w)) {
290 if (k in this.where) {
291 // Found conflicting keys, create an `and` operator to join the existing
292 // conditions with the new one
293 const where = {and: [this.where, w]};
294 this.where = where;
295 return this;
296 }
297 }
298 // Merge the where items
299 this.where = Object.assign(this.where, w);
300 return this;
301 }
302
303 /**
304 * @deprecated

Callers 15

andMethod · 0.95
orMethod · 0.95
eqMethod · 0.95
neqMethod · 0.95
gtMethod · 0.95
gteMethod · 0.95
ltMethod · 0.95
lteMethod · 0.95
inqMethod · 0.95
ninMethod · 0.95
betweenMethod · 0.95
existsMethod · 0.95

Calls 1

keysMethod · 0.65

Tested by

no test coverage detected