UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

28 lines (18 loc) 717 B
--- lang: en title: 'API docs: repository.entity.getid' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository permalink: /doc/en/lb4/apidocs.repository.entity.getid.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [Entity](./repository.entity.md) &gt; [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