apoc.text.toCypher

Details

Syntax

apoc.text.toCypher(value [, config ])

Description

Converts the given value to a Cypher property STRING.

Arguments

Name

Type

Description

value

ANY

The value to convert to a Cypher property string.

config

MAP

{ keepValues :: LIST<ANY> , skipValues :: LIST<ANY> } The default is: {}.

Returns

STRING

Usage Examples

RETURN apoc.text.toCypher("Neo4j") AS output;
Results
output

"'Neo4j'"

RETURN apoc.text.toCypher({key: "Value"}) AS output;
Results
output

"{key:'Value'}"

CREATE (p:Person) RETURN apoc.text.toCypher(p) AS output;
Results
output

"(:Person {})"