Item Properties
Property Access
Accessing or modifying properties of a node, edge, or vector
Accessing Properties
You can access properties of an item by using the name of the property as defined in the schema.
Example
Example
In schema.hx:
In query.hx:
Here we are accessing the Name
and Age
properties of each user.
JSON Output:
Accessing the ID
JSON Output
JSON Output
Spread Operator
Using the spread operator, you can remap values while including all other properties of the selected element in the returned object.
Example
Example
In schema.hx:
In query.hx:
JSON Output: