Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex query seems doesn`t build properly #16

Open
zotona opened this issue Aug 30, 2016 · 1 comment
Open

Complex query seems doesn`t build properly #16

zotona opened this issue Aug 30, 2016 · 1 comment

Comments

@zotona
Copy link

zotona commented Aug 30, 2016

The query
https://gyazo.com/2ca3f7c263107a864728188138391476
Its builded to:
QUERY Cypher [MATCH (n:AclEntry), (n)-[:ACLOBJECTIDENTITY]->(m_1), (n)-[:SID]->(m_0) WHERE ( ( m_0.sid=~{1} ) AND ( m_1.objectId={2} ) AND ) OPTIONAL MATCH(n)-[:SID]->(sidNode) OPTIONAL MATCH(n)-[:ACLOBJECTIDENTITY]->(aclObjectIdentityNode) RETURN n as data , collect(DISTINCT aclObjectIdentityNode) as aclObjectIdentityNodes, collect(DISTINCT sidNode) as sidNodes ] for params [[1:^\QadminUser5\E$, 2:rootClass5]]
and this too:
https://gyazo.com/18e3ab1341fa785e9b19e6b1c02f0a11
QUERY Cypher [MATCH (n:AclEntry), (n)-[:ACLOBJECTIDENTITY]->(m_0), (n)-[:SID]->(m_1), (m_1)-[:SID]->(m_2) WHERE ( ( AND ( m_2.__id__={1} ) ) ) OPTIONAL MATCH(n)-[:SID]->(sidNode) OPTIONAL MATCH(n)-[:ACLOBJECTIDENTITY]->(aclObjectIdentityNode) RETURN n as data , collect(DISTINCT aclObjectIdentityNode) as aclObjectIdentityNodes, collect(DISTINCT sidNode) as sidNodes ] for params [[1:%admin%]]

@graemerocher
Copy link
Member

Yeah seems a bug, although I'm not sure why you have a and block within only one item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants