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

Method impose

packages/filter/src/query.ts:454–461  ·  view source on GitHub ↗

* Add a where object. For conflicting keys with the existing where object, * create an `and` clause. * @param where - Where filter

(where: Where<MT>)

Source from the content-addressed store, hash-verified

452 * @param where - Where filter
453 */
454 impose(where: Where<MT>): this {
455 if (!this.where) {
456 this.where = where || {};
457 } else {
458 this.add(where);
459 }
460 return this;
461 }
462
463 /**
464 * Add a `like` condition

Callers 5

constrainWhereFunction · 0.95
findByForeignKeysFunction · 0.45
imposeMethod · 0.45
query.unit.tsFile · 0.45

Calls 1

addMethod · 0.95

Tested by

no test coverage detected