3.3. Properties

Both nodes and relationships can have properties.

Properties are key-value pairs where the key 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.

[Note]Note

null is not a valid property value. Nulls can instead be modeled by the absence of a key.

graphdb-properties.svg

Property value types

Type Description Value range

boolean

true/false

byte

8-bit integer

-128 to 127, inclusive

short

16-bit integer

-32768 to 32767, inclusive

int

32-bit integer

-2147483648 to 2147483647, inclusive

long

64-bit integer

-9223372036854775808 to 9223372036854775807, inclusive

float

32-bit IEEE 754 floating-point number

double

64-bit IEEE 754 floating-point number

char

16-bit unsigned integers representing Unicode characters

u0000 to uffff (0 to 65535)

String

sequence of Unicode characters


For further details on float/double values, see Java Language Specification.