Skip to content

Commit

Permalink
Modify Complex3 and Write 17 Queries in Galaxybase (#42)
Browse files Browse the repository at this point in the history
galaxybase complex3,write17 queries modify
  • Loading branch information
BingTong0 authored Nov 26, 2024
1 parent 4047661 commit 1bf806c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OPTIONAL MATCH path = shortestPath((:Account {id: $id1 })-[transfer:AccountTransferAccount*1..15]->(:Account {id: $id2 }))
OPTIONAL MATCH path = shortestPath((:Account {id: $id1 })-[transfer:AccountTransferAccount*1..16]->(:Account {id: $id2 }))
WHERE all(e IN transfer WHERE e.timestamp > $startTime AND e.timestamp < $endTime)
RETURN
CASE path IS NULL
Expand Down
6 changes: 2 additions & 4 deletions galaxybase-cypher/queries/transaction-write-17.cypher
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
MATCH (account:Account {id: $accountId})
WITH account
OPTIONAL MATCH (account)-[:AccountRepayLoan]->(loan1:Loan)
WITH account, loan1
OPTIONAL MATCH (loan2:Loan)-[:LoanDepositAccount]->(account)
DETACH DELETE account, loan1, loan2
OPTIONAL MATCH (account)-[:AccountRepayLoan|LoanDepositAccount]-(loan:Loan)
DETACH DELETE account, loan

0 comments on commit 1bf806c

Please sign in to comment.