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

Method neq

packages/filter/src/query.ts:355–359  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

353 * @param val - Property value
354 */
355 neq<K extends KeyOf<MT>>(key: K, val: MT[K]): this {
356 const w: Where<MT> = {};
357 w[key] = {neq: val};
358 return this.add(w);
359 }
360
361 /**
362 * Add a `>` condition

Callers 2

query.unit.tsFile · 0.80

Calls 1

addMethod · 0.95

Tested by

no test coverage detected