UNPKG

@loopback/docs

Version:
39 lines (26 loc) 1.07 kB
--- lang: en title: 'API docs: repository.wherebuilder.cast' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.repository.wherebuilder.cast.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [WhereBuilder](./repository.wherebuilder.md) &gt; [cast](./repository.wherebuilder.cast.md) ## WhereBuilder.cast() method > Warning: This API is now obsolete. > > Starting from TypeScript 3.2, we don't have to cast any more. This method should be considered as `deprecated`<!-- -->. > > Cast an `and`<!-- -->, `or`<!-- -->, or condition clause to Where > <b>Signature:</b> ```typescript cast(clause: AndClause<MT> | OrClause<MT> | Condition<MT>): Where<MT>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | clause | <code>AndClause&lt;MT&gt; &#124; OrClause&lt;MT&gt; &#124; Condition&lt;MT&gt;</code> | And/Or/Condition clause | <b>Returns:</b> `Where<MT>`