mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
corrected old query format
This commit is contained in:
parent
fc31634fc1
commit
be65c7d2af
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user