Skip to content

Commit 1bf806c

Browse files
authored
Modify Complex3 and Write 17 Queries in Galaxybase (#42)
galaxybase complex3,write17 queries modify
1 parent 4047661 commit 1bf806c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

galaxybase-cypher/queries/transaction-complex-read-3.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
OPTIONAL MATCH path = shortestPath((:Account {id: $id1 })-[transfer:AccountTransferAccount*1..15]->(:Account {id: $id2 }))
1+
OPTIONAL MATCH path = shortestPath((:Account {id: $id1 })-[transfer:AccountTransferAccount*1..16]->(:Account {id: $id2 }))
22
WHERE all(e IN transfer WHERE e.timestamp > $startTime AND e.timestamp < $endTime)
33
RETURN
44
CASE path IS NULL
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
MATCH (account:Account {id: $accountId})
22
WITH account
3-
OPTIONAL MATCH (account)-[:AccountRepayLoan]->(loan1:Loan)
4-
WITH account, loan1
5-
OPTIONAL MATCH (loan2:Loan)-[:LoanDepositAccount]->(account)
6-
DETACH DELETE account, loan1, loan2
3+
OPTIONAL MATCH (account)-[:AccountRepayLoan|LoanDepositAccount]-(loan:Loan)
4+
DETACH DELETE account, loan

0 commit comments

Comments
 (0)