apoc.map.flatten
Function APOC Core
apoc.map.flatten(map, delimiter:'.') yield map - flattens nested items in map using dot notation
Usage Examples
The following flattens a nested map using the default . delimiter:
RETURN apoc.map.flatten({
  person: {
    name: "Cristiano Ronaldo",
    club: {
      name: "Juventus",
      founded: 1897
    }
  }
}) AS output;| Output | 
|---|
|  | 
The following flattens a nested map using the / delimiter:
RETURN apoc.map.flatten({
  person: {
    name: "Cristiano Ronaldo",
    club: {
      name: "Juventus",
      founded: 1897
    }
  }
}, "/") AS output;| Output | 
|---|
|  |