apoc.map.flattenFunction
Syntax  | 
  | 
||
Description  | 
Flattens nested items in the given   | 
||
Arguments  | 
Name  | 
Type  | 
Description  | 
  | 
  | 
A nested map to flatten.  | 
|
  | 
  | 
The delimiter used to separate the levels of the flattened map. The default is:   | 
|
Returns  | 
  | 
||
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 | 
|---|
 |