API version: 0.3.0

---

# Property types

The `type` of a [property definition](/reference/schemas.md#properties) decides which values the property accepts, which
settings it has, where it is stored and which indices it can get. Every type has its own page.

| Type                                                             | Value                                       | Default database                | Index intents       |
| ---------------------------------------------------------------- | ------------------------------------------- | ------------------------------- | ------------------- |
| [`boolean`](/reference/schemas/types/boolean.md)                 | `true` or `false`                           | Neo4j                           | `exact`             |
| [`integer`](/reference/schemas/types/integer.md)                 | whole number                                | Neo4j                           | `exact`             |
| [`number`](/reference/schemas/types/number.md)                   | any number                                  | Neo4j                           | `exact`             |
| [`string`](/reference/schemas/types/string.md)                   | text, optionally with `maxLength`           | Neo4j, MongoDB for long strings | `exact`, `fulltext` |
| [`datetime`](/reference/schemas/types/datetime.md)               | RFC 3339 date time                          | Neo4j                           | `exact`             |
| [`elementId`](/reference/schemas/types/element-id.md)            | id of an element                            | Neo4j                           | `exact`             |
| [`point`](/reference/schemas/types/point.md)                     | GeoJSON `Point`                             | MongoDB                         | `geo`               |
| [`linestring`](/reference/schemas/types/linestring.md)           | GeoJSON `LineString`                        | MongoDB                         | `geo`               |
| [`polygon`](/reference/schemas/types/polygon.md)                 | GeoJSON `Polygon`                           | MongoDB                         | `geo`               |
| [`multipoint`](/reference/schemas/types/multipoint.md)           | GeoJSON `MultiPoint`                        | MongoDB                         | `geo`               |
| [`multilinestring`](/reference/schemas/types/multilinestring.md) | GeoJSON `MultiLineString`                   | MongoDB                         | `geo`               |
| [`multipolygon`](/reference/schemas/types/multipolygon.md)       | GeoJSON `MultiPolygon`                      | MongoDB                         | `geo`               |
| [`object`](/reference/schemas/types/object.md)                   | object with nested properties               | MongoDB                         | none                |
| [`list`](/reference/schemas/types/list.md)                       | list, optionally with a definition of items | MongoDB                         | none                |
| [`vector`](/reference/schemas/types/vector.md)                   | fixed-size list of numbers                  | MongoDB                         | `vector`            |

> **ℹ Nested properties are stored in MongoDB**
>
> Neo4j can only store properties at the root of an element, as scalar values, e.g. `name` or `population`. Objects
> and lists have no native type there, so a property which contains nested properties, i.e. an `object` or a `list`,
> is by default written as a whole to MongoDB, together with everything inside of it. Placement always applies to the
> property at the root of the element, nested properties can not be placed separately.

Every property is stored in exactly one of the primary databases, Neo4j or MongoDB, and copied to Elasticsearch for the
search, see [databases](/reference/databases.md) and [placement](/reference/schemas/placement.md).

Values of properties which the schema does not define are stored as they are: a GeoJSON object without a `point`
definition is a plain object, a WKT string a plain string.

---

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

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

Previous: [Schemas](/reference/schemas.md)

Next: [Boolean](/reference/schemas/types/boolean.md)
