Handling escape character (\) in Neo4j Cypher Query

1.9k Views Asked by At

Is there any way to ingest data with backslash (\) character into Neo4j without replacing it with double backslash (\\)

1

There are 1 best solutions below

0
On

The \ is the escape character in Neo4j, so if you want use it as a character you need to escape it by double it, ie \\.

There is no way to avoid this...

But, it can be totally transparent for you if you use a parameterized query : Neo4j's driver will escape all specific characters of yours parameters