How do I select nodes in HelixDB?
UseN to select nodes from your graph by ID, type, or property values to begin traversals.
Example 1: Selecting a user by ID
Example 2: Selecting all users
Example 3: Selecting nodes by property value
Select nodes by matching INDEX field values instead of ID. This is useful when you need to find nodes with specific property values.Property-based selection returns all nodes matching the specified INDEX field values. For more complex filtering conditions, use WHERE clauses.
You can also do specific property-based filtering, e.g., returning only ID, see the Property Filtering. You can also do aggregation steps, e.g., returning the count of nodes, see the Aggregations.
Related operations
- Create nodes - Add new nodes to your graph
- Traversals - Navigate between connected nodes
- Conditionals - Filter nodes by properties
- Property access - Work with node properties