Accessing properties of a node, edge, or vector
// Get specific properties ::{<SchemaFieldNames>}
Example
N::User{ Name: String, Email: String, Age: U32, Posts: U32 }
QUERY findUsers() => users <- N<User>::RANGE(0, 10) RETURN users::{ Name, Age }
Name
Age
"users": [ { "Name": "John", "Age": 30 }, ... ]
::ID
QUERY findUsers() => users <- N<User>::RANGE(0, 1) RETURN users::ID
JSON Output
"users": [ { "id": "c2ca233f-0cd8-4fae-8136-b40593792071" }, ... ]
::{ userID: ID, .. }
N::User{ name: String, age: U32, }
QUERY findUsers() => users <- N<User>::RANGE(0, 10) RETURN users::{ userID: ID, .. }
"users": [ { "userID": "c2ca233f-0cd8-4fae-8136-b40593792071", "name": "John", "age": 30 }, ... ]
Was this page helpful?