@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
67 lines (35 loc) • 1.36 kB
Markdown
---
lang: en
title: 'API docs: sequelize.sequelizecrudrepository.buildsequelizewhere'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/sequelize
permalink: /doc/en/lb4/apidocs.sequelize.sequelizecrudrepository.buildsequelizewhere.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/sequelize](./sequelize.md) > [SequelizeCrudRepository](./sequelize.sequelizecrudrepository.md) > [buildSequelizeWhere](./sequelize.sequelizecrudrepository.buildsequelizewhere.md)
## SequelizeCrudRepository.buildSequelizeWhere() method
Build Sequelize compatible where condition object
**Signature:**
```typescript
protected buildSequelizeWhere<MT extends T>(where?: Where<MT>): WhereOptions<MT>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
where
</td><td markdown="1">
[Where](./filter.where.md)<!-- --><MT>
</td><td markdown="1">
_(Optional)_ loopback style `where` condition
</td></tr>
</tbody></table>
**Returns:**
WhereOptions<MT>
Sequelize compatible where options to be used in queries