Created
November 18, 2021 16:21
-
-
Save Hkazanci93/4f08941bf35488f44d426a0bbc89a953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MATCH (me:Person), (post:Post) | |
WHERE me.userid = $userid | |
AND ID(post) = $onPost | |
CREATE (me)-[:commented]->(comment:Comment {text:$text,created:$now}) | |
CREATE (post)-[:hasComment]->(comment) | |
RETURN post |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment