List Expressions, UNION, and Subqueries
We have looked at filtering and sorting in Cypher queries in earlier chapters. In this chapter, we will take a look at more advanced options for querying.
We will cover the following topics:
- Working with list expressions
- Working with
UNION
in Cypher - Working with subqueries
List expressions provide a powerful paradigm to manipulate list results in Cypher. UNION
queries provide the means to combine the results of distinct queries and return data. Subqueries provide a powerful option for executing a query inside another query and using the results in the main query.
Now, let us take a look at list expressions.