apoc.text.toCypher

Function

apoc.text.toCypher(value ANY, config MAP<STRING, ANY>) - converts the given value to a Cypher property STRING.

Signature

apoc.text.toCypher(value :: ANY, config = {} :: MAP) :: STRING

Input parameters

Name Type Default

value

ANY

null

config

MAP

{}

Usage Examples

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

"'Neo4j'"

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

"{key:'Value'}"

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

"(:Person {})"