memgraph / gqlalchemy

GQLAlchemy is a library developed with the purpose of assisting in writing and running queries on Memgraph. GQLAlchemy supports high-level connection to Memgraph as well as modular query builder.

Home Page:https://pypi.org/project/gqlalchemy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Query failed: Only nodes, edges, maps and temporal types have properties to be looked-up.

POMXARK opened this issue · comments

No ability to filter by relationship field

MATCH p=({user_id: '11509'})-[r:any_binding * ]->()
WHERE r.bind_type = 1 OR  r.bind_type = 2 
RETURN p

implemented in https://neo4j.com/developer/kb/comparing-relationship-properties-within-a-path/

found the answer

https://community.neo4j.com/t/filtering-by-relationship-properties/13121/4

MATCH p=({user_id: '11509'})-[r:any_binding * ]->()
WHERE all(a in r where a.bind_type = 1 and a.bind_type = 2)
RETURN p