Last active
May 8, 2018 07:57
-
-
Save elisedeux/327b879c9f0142bf542ce104ec8c9712 to your computer and use it in GitHub Desktop.
Query template used to expand a person's bank account node and its ten highest associated transactions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MATCH (c:PERSON)-[e1:HAS_BANK_ACCOUNT]->(cc:BANK_ACCOUNT)-[e2:HAS_RECEIVED]->(t:TRANSACTION) | |
WHERE ID(c) = {{"PERSON":node:"PERSON"}} | |
RETURN c, e1, cc, e2, t | |
ORDER BY t.amount DESC | |
LIMIT 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment