Page Contents
Home > @loopback/filter > WhereBuilder > exists
WhereBuilder.exists() method
Add a exists condition
Signature:
exists<K extends KeyOf<MT>>(key: K, val?: boolean): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
|
key |
K |
Property name |
|
val |
boolean |
(Optional) Exists or not |
Returns:
this