apoc.map.removeKeysFunction
Syntax |
|
||
Description |
Removes the given keys from the |
||
Arguments |
Name |
Type |
Description |
|
|
The map to be updated. |
|
|
|
The keys to remove from the map. |
|
|
|
{ recursive = false :: BOOLEAN } The default is: |
|
Returns |
|
||
Usage Examples
The following removes keys from a map:
Cypher’s map comprehension
RETURN {k: v IN {name:"Cristiano Ronaldo",country:"Portugal",dob:date("1985-02-05")}
WHERE NOT k IN ["dob", "country"] | k : v} AS output;
apoc.map.removeKeys
RETURN apoc.map.removeKeys(
{name:"Cristiano Ronaldo",country:"Portugal",dob:date("1985-02-05")},
["dob", "country"]
) AS output;
| Output |
|---|
|