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

Method eq

packages/filter/src/query.ts:344–348  ·  view source on GitHub ↗

* Add an `=` condition * @param key - Property name * @param val - Property value

(key: K, val: MT[K])

Source from the content-addressed store, hash-verified

342 * @param val - Property value
343 */
344 eq<K extends KeyOf<MT>>(key: K, val: MT[K]): this {
345 const w: Where<MT> = {};
346 w[key] = val as ShortHandEqualType & MT[K];
347 return this.add(w);
348 }
349
350 /**
351 * Add a `!=` condition

Callers 3

index.unit.tsFile · 0.80
query.unit.tsFile · 0.80

Calls 1

addMethod · 0.95

Tested by

no test coverage detected