Skip to content

Commit

Permalink
replied cypher
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Apr 11, 2024
1 parent b7365e2 commit e7d3dc2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/graph-store/src/cyphers/replied.cypher.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const CREATE_OR_UPDATE_REPLIED = `
MATCH (chat:TGChat { id: $chat_id })
MATCH (message:TGMessage { id: $message_id })-[:SENT_IN]->(chat)
MATCH (origin:TGMessage { id: $origin_id })-[:SENT_IN]->(chat)
MERGE (message)-[r:REPLIED]->(origin)
RETURN r
`;

0 comments on commit e7d3dc2

Please sign in to comment.