apoc.map.mergeList

Function APOC Core

apoc.map.mergeList([{maps}]) yield value - merges all maps in the list into one

Signature

apoc.map.mergeList(maps :: LIST? OF MAP?) :: (MAP?)

Input parameters

Name Type Default

maps

LIST? OF MAP?

null

Usage Examples

The following merges multiple maps:

RETURN apoc.map.mergeList([
    {name: "Cristiano Ronaldo"},
    {dob: date("1985-02-05")},
    {country: "Portugal"}
]) AS output;
Table 1. Results
Output
{
  "name": "Cristiano Ronaldo",
  "country": "Portugal",
  "dob": "1985-02-05"
}