---
title: "Session: How to Customize the Identity Property Lookup for Entities"
url: "https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-customize-identity-property-lookup-for-entities"
version: "6.2"
language: "nodejs"
---

# Session: How to Customize the Identity Property Lookup for Entities

> Client language: Node.js. Also available for [C#](https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-customize-identity-property-lookup-for-entities.md), [Java](https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-customize-identity-property-lookup-for-entities.java.md), [PHP](https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-customize-identity-property-lookup-for-entities.php.md).
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

The client must know which property of your entity is considered as an identity. By default, it always looks for the `id` field (case-sensitive). This behavior can be changed by overwriting one of our conventions called `identityProperty`.

## Syntax

```javascript
store.conventions.identityProperty;
```

## Example

Here's how to change it to `Identifier` field.

```javascript
store.conventions.identityProperty = "Identifier"; 
```

## See also

- [Conventions](https://docs.ravendb.net/6.2/client-api/configuration/conventions.nodejs.md)
- [How to Customize ID Generation for Entities](https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-customize-id-generation-for-entities.md)
- [How to Customize Collection Assignment for Entities](https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-customize-collection-assignment-for-entities.nodejs.md)
- [Document Identifier Generation](https://docs.ravendb.net/6.2/server/kb/document-identifier-generation.md)
