@loopback/docs
Version:
Documentation for LoopBack 4
27 lines (17 loc) • 604 B
Markdown
lang: en
title: 'API docs: repository.entity.getid'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.entity.getid.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/repository](./repository.md) > [Entity](./repository.entity.md) > [getId](./repository.entity.getid.md)
## Entity.getId() method
Get the identity value. If the identity is a composite key, returns an object.
<b>Signature:</b>
```typescript
getId(): any;
```
<b>Returns:</b>
`any`