Documentation Index Fetch the complete documentation index at: https://docs.helix-db.com/llms.txt
Use this file to discover all available pages before exploring further.
HelixQL is deprecated in HelixDB v2. Queries are now written with the Rust DSL and dispatched as JSON — see the Querying guide. This section is kept as a reference for legacy HelixQL projects.
For the complete documentation index optimized for AI agents, see llms.txt .
E Edge
Select edges from your graph to begin traversal.
Example 1: Selecting a follows edge by ID
QUERY GetFollowEdge (edge_id: ID) =>
follow_edge <- E<Follows>(edge_id)
RETURN follow_edge
QUERY CreateUser (name: String, age: U8, email: String) =>
user <- AddN<User>({
name: name,
age: age,
email: email
})
RETURN user
QUERY CreateRelationships (user1_id: ID, user2_id: ID) =>
follows <- AddE<Follows>::From(user1_id)::To(user2_id)
RETURN follows
See all 17 lines
Python
Rust
Go
TypeScript
Curl
from helix.client import Client
client = Client( local = True , port = 6969 )
alice = client.query( "CreateUser" , {
"name" : "Alice" ,
"age" : 25 ,
"email" : "alice@example.com" ,
})
alice_id = alice[ 0 ][ "user" ][ "id" ]
bob = client.query( "CreateUser" , {
"name" : "Bob" ,
"age" : 28 ,
"email" : "bob@example.com" ,
})
bob_id = bob[ 0 ][ "user" ][ "id" ]
follows = client.query( "CreateRelationships" , {
"user1_id" : alice_id,
"user2_id" : bob_id,
})
edge_id = follows[ 0 ][ "follows" ][ "id" ]
result = client.query( "GetFollowEdge" , { "edge_id" : edge_id})
print (result)
See all 26 lines
Example 2: Selecting all follows edges
QUERY GetAllFollows () =>
follows <- E<Follows>
RETURN follows
Python
Rust
Go
TypeScript
Curl
from helix.client import Client
client = Client( local = True , port = 6969 )
result = client.query( "GetAllFollows" )
print (result)