I am writing a custom cypher query for mutation using GRAND stack. However, I am having problem accessing the user object stored in Apollo Server's context from the cypher queries I am writing.
So instead of doing this,
createUser(id: String): User
@cypher(
statement: "CREATE (u:User {id: $id}) RETURN u"
)
I would like to do something similar to
createUser: User
@cypher(
statement: "CREATE (u:User {id: context.user.id}) RETURN u"
)