Skip to main content

Property types

The type of a property definition 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.

TypeValueDefault databaseIndex intents
booleantrue or falseNeo4jexact
integerwhole numberNeo4jexact
numberany numberNeo4jexact
stringtext, optionally with maxLengthNeo4j, MongoDB for long stringsexact, fulltext
datetimeRFC 3339 date timeNeo4jexact
elementIdid of an elementNeo4jexact
pointGeoJSON PointMongoDBgeo
linestringGeoJSON LineStringMongoDBgeo
polygonGeoJSON PolygonMongoDBgeo
multipointGeoJSON MultiPointMongoDBgeo
multilinestringGeoJSON MultiLineStringMongoDBgeo
multipolygonGeoJSON MultiPolygonMongoDBgeo
objectobject with nested propertiesMongoDBnone
listlist, optionally with a definition of itemsMongoDBnone
vectorfixed-size list of numbersMongoDBvector

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 and placement.

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.