Subqueries
When you execute a series of MATCH clauses, all iFull definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. and iFull definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node. retrieved are in memory.
If the memory requirements for a set of MATCH clauses exceed the VM configured, the query will fail.
A subquery is a set of iFull definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. statements that execute within their own scope. A subquery is typically called from an outer enclosing query. Using a subquery, you can limit the number of rows that need to be processed.
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register