diff --git a/modules/ROOT/pages/reference/directives/cypher.adoc b/modules/ROOT/pages/reference/directives/cypher.adoc index 6a5c8ef7..9a44e0bd 100644 --- a/modules/ROOT/pages/reference/directives/cypher.adoc +++ b/modules/ROOT/pages/reference/directives/cypher.adoc @@ -53,7 +53,7 @@ type User { type Query { me: User @cypher( statement: """ - MATCH (user:User {id: $auth.jwt.sub}) + MATCH (user:User {id: $jwt.sub}) RETURN user """, columnName: "user" @@ -84,7 +84,7 @@ Use in cypher query: ---- type Query { userPosts: [Post] @cypher(statement: """ - MATCH (:User {id: $cypherParams.userId})-[:POSTED]->(p:Post) + MATCH (:User {id: $userId})-[:POSTED]->(p:Post) RETURN p """, columnName: "p") }