Conversion Functions

Sometimes type information gets lost, these functions help you to coerce an ANY value to the concrete type

Qualified Name Type

apoc.convert.toMap

apoc.convert.toMap(value) | tries it’s best to convert the value to a map

Function

apoc.convert.toList

apoc.convert.toList(value) | tries it’s best to convert the value to a list

Function

apoc.convert.toNode

apoc.convert.toNode(value) | tries it’s best to convert the value to a node

Function

apoc.convert.toRelationship

apoc.convert.toRelationship(value) | tries it’s best to convert the value to a relationship

Function

apoc.convert.toSet

apoc.convert.toSet(value) | tries it’s best to convert the value to a set

Function

apoc.convert.toNodeList

apoc.convert.toNodeList(value) | tries it’s best to convert the value to a list of nodes

Function

apoc.convert.toRelationshipList

apoc.convert.toRelationshipList(value) | tries it’s best to convert the value to a list of relationships

Function