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