Page Contents

Home > @loopback/sequelize > SequelizeCrudRepository > buildSequelizeWhere

SequelizeCrudRepository.buildSequelizeWhere() method

Build Sequelize compatible where condition object

Signature:

protected buildSequelizeWhere<MT extends T>(where?: Where<MT>): WhereOptions<MT>;

Parameters

Parameter Type Description
where Where<MT> (Optional) loopback style where condition

Returns:

WhereOptions<MT>

Sequelize compatible where options to be used in queries