adam-cowley / neode

Neo4j OGM for Node.js
MIT License
394 stars 72 forks source link

Support for parentheses in where conditions #161

Open mirkos93 opened 3 years ago

mirkos93 commented 3 years ago

I am trying to use Neode in my project, but I have encountered a problem: I cannot create nested where conditions without using whereRaw(). An example (nonsense) to understand what I mean:

MATCH ... 
WHERE ((1 = 1) OR (0 = 0)) AND ((2 = 2) OR (3 = 3)) 
RETURN ...

Is there a way to implement this without using whereRaw, but perhaps using a callback in where?

Thank you in advance!