apoc.map.setEntry
Function
apoc.map.setEntry(map Map<String, Any>, key String, value Any)
- adds or updates the given entry in the map.
Usage Examples
The following updates a key in a map:
RETURN apoc.map.setEntry(
{name:"Cristiano Ronaldo",country:"Portugal",dob:date("1985-02-05")},
"dob",
date("1986-02-06")
) AS output;
Output |
---|
|
Was this page helpful?