Create dynamic cypher using cypher , "<-,<=" are transformed to "</-,</="

Hi
I am trying to create dynamic cypher as string , but facing issue with "<-,<=" .

WITH "MATCH(n)<--(c) WHERE n.age <= 20 return n" AS dynamicCypher RETURN dynamicCypher

OUTPUT: "MATCH(n)

Please help me to get output as "MATCH(n)<--(c) WHERE n.age <= 20 return n"

Thanks

Hi @narasimha.pps,

Welcome to the community !!

Your question is not clear, kindly explain it.

Hello @narasimha.pps and welcome :slight_smile:

This work on my Neo4j Database:

WITH "MATCH(n)<-[]-(c) WHERE n.age <= 20 return n" AS dynamicCypher RETURN dynamicCypher

It returns:

"MATCH (n)<-[]-(c) WHERE n.age <= 20 return n"

Did you get an error?

Regards,
Cobra

Hi Cobra,
I am running the same cypher in graphenedb in heroku on neo4j browser ,i am not getting the complete string in output , i am getting only "MATCH(n)"

Thanks

Can you send a screenshot of the interface where we can see the query?

Which version of Neo4j Desktop and Neo4j database are you using?

Regards,
Cobra