apoc.map.fromPairs
Function
apoc.map.fromPairs(pairs [[key Any, value Any]])
- creates a map from the given list of key-value pairs.
Usage Examples
The following creates a map from list of key-value pairs:
RETURN apoc.map.fromPairs([
["name", "Cristiano Ronaldo"],
["age", date("1985-02-05")]
]) AS output;
Output |
---|
|
Was this page helpful?