Skip to main content

Element id

elementId holds the id of an element, e.g. to reference another element without a relation.

ValueExample
element id"02IiNr0GOoKiPMLSxpKrArvUWmaEqZ5h7Uybr"

Settings

This type has no settings of its own, it supports the settings of every property.

Storage

DatabaseStored asNotes
Neo4jnative STRING(default)
MongoDBstringwith "storage": "document" or the placement role scalar moved to MongoDB
Elasticsearchkeywordsearch copy, see below

The search copy is written unless the property or the type sets "search": false. Where a property is stored is explained in placement.

Indices

exact, see indices. Nested properties can be indexed as well, see 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:

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

Input and output:

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