Cypher Property
A Cypher Property returns the result of the Cypher query specified in the Format/Code
field.
Details
The value in the Format/Code
field will be interpreted as a StructrScript, i.e. the field can contain Template Expressions.
Parameters
Two parameters are available for use in the property:
id
: The UUID of the current object.type
: The type of the current object.
These parameters can be accessed anywhere in the query by wrapping them in brackets. (e.g. {id}
or {type}
)
JSON Output
{
"query_time": "0.000897187",
"result_count": 1,
"result": {
"totalHoursByPerson": {
"person1": 34,
"person2": 13,
"person3": 42
}
},
"serialization_time": "0.000051543"
}
Note
The output format of a Cypher property depends on the result of the query. It can be a simple value, an object, a list of objects, a path, etc..