@loopback/docs
Version:
Documentation for LoopBack 4
34 lines (21 loc) • 762 B
Markdown
lang: en
title: 'API docs: repository.entity.buildwhereforid'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.entity.buildwhereforid.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/repository](./repository.md) > [Entity](./repository.entity.md) > [buildWhereForId](./repository.entity.buildwhereforid.md)
## Entity.buildWhereForId() method
Build the where object for the given id
<b>Signature:</b>
```typescript
static buildWhereForId(id: any): any;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| id | <code>any</code> | The id value |
<b>Returns:</b>
`any`