apoc.convert.toMap

Details

Syntax

apoc.convert.toMap(map)

Description

Converts the given value into a MAP.

Arguments

Name

Type

Description

map

ANY

The value to convert into a map.

Returns

MAP

Usage examples

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

{id: 4}