Page Contents

Home > @loopback/repository > WhereBuilder > cast

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

Signature:

cast(clause: AndClause<MT> | OrClause<MT> | Condition<MT>): Where<MT>;

Parameters

Parameter Type Description
clause AndClause<MT> | OrClause<MT> | Condition<MT> And/Or/Condition clause

Returns:

Where<MT>