7
Working with Lists and Maps
We have worked with lists and maps in earlier chapters in various queries. But we have not discussed how lists and maps can make Cypher queries more powerful. They are first-class types in Cypher, like string and integer, and can make it easy to build complex queries. This chapter discusses how we can handle both lists and maps as input and output. We will discuss how we can prepare lists from data, iterate lists to process data, handle nested maps, and return map projections.
The following aspects will be covered in this chapter:
- Working with lists
- Working with maps
We will be covering lists first. We will discuss in detail how lists work in Cypher and explore various ways we can manipulate and work with lists, ...
Get Graph Data Processing with Cypher now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.