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

Method between

packages/filter/src/query.ts:433–437  ·  view source on GitHub ↗

* Add a `between` condition * @param key - Property name * @param val1 - Property value lower bound * @param val2 - Property value upper bound

(key: K, val1: MT[K], val2: MT[K])

Source from the content-addressed store, hash-verified

431 * @param val2 - Property value upper bound
432 */
433 between<K extends KeyOf<MT>>(key: K, val1: MT[K], val2: MT[K]): this {
434 const w: Where<MT> = {};
435 w[key] = {between: [val1, val2]};
436 return this.add(w);
437 }
438
439 /**
440 * Add a `exists` condition

Callers 2

query.unit.tsFile · 0.80

Calls 1

addMethod · 0.95

Tested by

no test coverage detected