corrected old query format

This commit is contained in:
Ulf Gebhardt 2023-05-16 12:11:21 +02:00
parent fc31634fc1
commit be65c7d2af
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -21,7 +21,7 @@ export default {
MATCH (post:Post {id: $postId}) MATCH (post:Post {id: $postId})
MATCH (author:User {id: $userId}) MATCH (author:User {id: $userId})
WITH post, author WITH post, author
CREATE (comment:Comment {params}) CREATE (comment:Comment $params)
SET comment.createdAt = toString(datetime()) SET comment.createdAt = toString(datetime())
SET comment.updatedAt = toString(datetime()) SET comment.updatedAt = toString(datetime())
MERGE (post)<-[:COMMENTS]-(comment)<-[:WROTE]-(author) MERGE (post)<-[:COMMENTS]-(comment)<-[:WROTE]-(author)