apoc.convert.toMap

Function APOC Core

apoc.convert.toMap(value) | tries it’s best to convert the value to 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}