Skip to main content

Select specific properties with ::{}  

Access properties of an item by using the property names as defined in the schema.
Property access allows you to return only the fields you need, reducing data transfer and improving query performance.
When using the SDKs or curling the endpoint, the query name must match what is defined in the queries.hx file exactly.

Example 1: Basic property selection

Here’s how to run the query using the SDKs or curl

Example 2: Property selection with renaming

Here’s how to run the query using the SDKs or curl

Access unique identifiers with ::ID  

Access the unique identifier of any node, edge, or vector.
Every element in HelixDB has a unique ID that can be accessed using the ::ID syntax.
When using the SDKs or curling the endpoint, the query name must match what is defined in the queries.hx file exactly.

Example 1: Getting element IDs

Here’s how to run the query using the SDKs or curl

Include all properties with ..  

Use the spread operator to include all properties while optionally remapping specific fields.
When using the SDKs or curling the endpoint, the query name must match what is defined in the queries.hx file exactly.

Example 1: Property aliasing with spread operator

Here’s how to run the query using the SDKs or curl