Modifying and adding new properties to the object returned by the traversal.
::{ field: <SchemaField>, followerCount: <SchemaField/Traversal> }
N::User{ name: String, age: U32, }
QUERY GetUserDetails() => users <- N<User>::RANGE(0, 10) RETURN users::{ userID: ID, followerCount: _::In<Follows>::COUNT }
"users": [ { "userID": "c2ca233f-0cd8-4fae-8136-b40593792071", "followerCount": 10 }, ... ]
Was this page helpful?