Property values
This describes how both nodes and relationships can have properties.
Properties are named values where the name is a string.
Property values can be either a primitive or an array of one primitive type.
For example String, int, and int[] values are valid for properties.
NULL is not a valid property value.
Setting a property to NULL is equivalent to deleting the property.
| Type | Description |
|---|---|
|
|
|
8-bit integer. |
|
16-bit integer. |
|
32-bit integer. |
|
64-bit integer. |
|
32-bit IEEE 754 floating-point number. |
|
64-bit IEEE 754 floating-point number. |
|
16-bit unsigned integers representing Unicode characters. |
|
Sequence of Unicode characters. |
|
A 2D or 3D point object in a given coordinate system. |
|
An instant capturing of the date, but not the time and timezone. |
|
An instant capturing of the time of day and the timezone offset, but not the date. |
|
An instant capturing of the time of day, but not the date and timezone. |
|
An instant capturing of the date, time, and timezone. |
|
An instant capturing of the date and time, but not the timezone. |
|
A temporal amount. This captures the difference in time between two instants. |
For further details on float/double values, see Java Language Specification.
Note that there are two cases where more than one Java type is mapped to a single Cypher type. When this happens, type information is lost. If these objects are returned from procedures, the original types cannot be recreated:
-
A Cypher
Durationis created when eitherjava.time.Durationorjava.time.Periodis provided. IfDurationis returned, only the common interfacejava.time.temporal.TemporalAmountremains. -
A Cypher
DateTimeis created whenjava.time.OffsetDateTimeis provided. IfDateTimeis returned, it is converted intojava.time.ZonedDateTime.
Strings that contain special characters can have inconsistent or non-deterministic ordering in Neo4j. For details, see Cypher Manual → Sorting of special characters.