Properties
A property describes an attribute of an entity or relationship. Properties are listed under the properties of a node
or relationship, keyed by property id. must_exist, unique and key are shorthand for
constraints.
properties:
title:
type: STRING
description: The title the movie was released under.
unique: true
genre:
type: STRING
one_of: [DRAMA, COMEDY, THRILLER]
Property
A property of a node or relationship.
| Field | Type | Required | Description |
|---|---|---|---|
|
No |
Neo4j type of the property. |
|
|
integer |
No |
Dimension of the property when it holds a vector. |
|
boolean |
No |
Shorthand for an existence constraint. Expanded into constraints when the model is decoded. |
|
boolean |
No |
Shorthand for a uniqueness constraint. Expanded into constraints when the model is decoded. |
|
boolean |
No |
Shorthand for a key constraint. Expanded into constraints when the model is decoded. |
|
No |
Extensions for the property. |
|
|
string |
No |
Name of the property in the database, when different from its id. |
|
string |
No |
Description of the property. |
|
list of strings |
No |
Alternative names for the property. |
|
string |
No |
Reference or URI of an external resource describing the property. |
|
string |
No |
Pattern values of the property are expected to match. |
|
list of strings |
No |
Values the property is restricted to. |
Types
Each type except UUID and the VECTOR types also has a list form, such as LIST<STRING>.
| Kind | Types |
|---|---|
Text |
|
Numbers |
|
Boolean |
|
Temporal |
|
Spatial |
|
Vectors |
|
Other |
|