API version: 0.3.0

---

# Element id

`elementId` holds the [id of an element](/reference/elements/element-id.md), e.g. to reference another element without a
relation.

| Value      | Example                                   |
| ---------- | ----------------------------------------- |
| element id | `"02IiNr0GOoKiPMLSxpKrArvUWmaEqZ5h7Uybr"` |

## Settings

This type has no settings of its own, it supports the [settings of every property](/reference/schemas.md#properties).

## Storage

| Database      | Stored as       | Notes                                                                                                                           |
| ------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| Neo4j         | native `STRING` | (default)                                                                                                                       |
| MongoDB       | `string`        | with `"storage": "document"` or the [placement role](/reference/schemas/placement.md#placement-roles) `scalar` moved to MongoDB |
| Elasticsearch | `keyword`       | search copy, see below                                                                                                          |

The [search copy](/reference/databases/elasticsearch.md) is written unless the property or the type sets `"search": false`.
Where a property is stored is explained in [placement](/reference/schemas/placement.md).

## Indices

`exact`, see [indices](/reference/indices.md). Nested properties can be indexed as well, see
[nested properties](/reference/indices.md#nested-properties).

## Limits

Only the format of the id is checked, the element does not need to exist, and access to it is not checked. Use a
relation if the reference has to be followed by the search or the access model.

## Example

Schema:

```json
{
  "type": "elementId",
  "index": "exact"
}
```

Input and output:

```json
{
  "data": {
    "value": "02IiNr0GOoKiPMLSxpKrArvUWmaEqZ5h7Uybr"
  }
}
```

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)

Previous: [Datetime](/reference/schemas/types/datetime.md)

Next: [Point](/reference/schemas/types/point.md)
