---
lang: en
title: 'API docs: repository.entity.getidobject'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.entity.getidobject.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; [getIdObject](./repository.entity.getidobject.md)

## Entity.getIdObject() method

Get the identity as an object, such as `{id: 1}` or `{schoolId: 1, studentId: 2}`

<b>Signature:</b>

```typescript
getIdObject(): Object;
```
<b>Returns:</b>

Object


