Skip to content

Commit 4b05346

Browse files
authored
Fix incorrect references to variables in Cypher (#17)
1 parent dd84992 commit 4b05346

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ROOT/pages/reference/directives/cypher.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type User {
5353
type Query {
5454
me: User @cypher(
5555
statement: """
56-
MATCH (user:User {id: $auth.jwt.sub})
56+
MATCH (user:User {id: $jwt.sub})
5757
RETURN user
5858
""",
5959
columnName: "user"
@@ -84,7 +84,7 @@ Use in cypher query:
8484
----
8585
type Query {
8686
userPosts: [Post] @cypher(statement: """
87-
MATCH (:User {id: $cypherParams.userId})-[:POSTED]->(p:Post)
87+
MATCH (:User {id: $userId})-[:POSTED]->(p:Post)
8888
RETURN p
8989
""", columnName: "p")
9090
}

0 commit comments

Comments
 (0)