apoc.convert.toMap

Function

apoc.convert.toMap(map Any) - converts the given value into a map.

Signature

apoc.convert.toMap(map :: ANY?) :: (MAP?)

Input parameters

Name Type Default

map

ANY?

null

Usage examples

Convert node to map
CREATE (node:Node {id: 4})
RETURN apoc.convert.toMap(node) AS output;
Table 1. Results
output

{id: 4}