cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

4 REPLIES 4

intouch_vivek
Graph Steward

Hi @narasimha.pps,

Welcome to the community !!

Your question is not clear, kindly explain it.

Hello @narasimha.pps and welcome

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