Element id
elementId holds the id of an , 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 .
Storage
| Database | Stored as | Notes |
|---|---|---|
| Neo4j | native STRING | (default) |
| MongoDB | string | with "storage": "document" or the placement scalar moved to MongoDB |
| Elasticsearch | keyword | search copy, see below |
The search is written unless the property or the type sets "search": false. Where a property is stored is explained in .
Indices
exact, see . Nested properties can be indexed as well, see nested .
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" }}