apoc.map.mergeFunctionDeprecated in Cypher 25
|
This function is deprecated. Use Cypher’s map addition instead. |
Syntax |
|
||
Description |
Merges the two given |
||
Arguments |
Name |
Type |
Description |
|
|
The first map to merge with the second map. |
|
|
|
The second map to merge with the first map. |
|
Returns |
|
||
Usage examples
The following merges two maps:
Cypher’s map addition
RETURN {name: "Cristiano Ronaldo", dob: date("1985-02-05")} + {country: "Portugal"} AS output;
apoc.map.merge
RETURN apoc.map.merge(
{name: "Cristiano Ronaldo", dob: date("1985-02-05")},
{country: "Portugal"}
) AS output;
| output |
|---|
{
"name": "Cristiano Ronaldo",
"country": "Portugal",
"dob": "1985-02-05"
}
|