UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

36 lines (23 loc) 867 B
--- lang: en title: 'API docs: filter.wherebuilder.exists' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/filter permalink: /doc/en/lb4/apidocs.filter.wherebuilder.exists.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/filter](./filter.md) &gt; [WhereBuilder](./filter.wherebuilder.md) &gt; [exists](./filter.wherebuilder.exists.md) ## WhereBuilder.exists() method Add a `exists` condition <b>Signature:</b> ```typescript exists<K extends KeyOf<MT>>(key: K, val?: boolean): this; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | key | K | Property name | | val | boolean | Exists or not | <b>Returns:</b> this