Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elisedeux/327b879c9f0142bf542ce104ec8c9712 to your computer and use it in GitHub Desktop.
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.
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