arturo-lang / grafito

Portable, Serverless & Lightweight SQLite-based Graph Database in Arturo
MIT License
143 stars 7 forks source link

Edge property filters should work exactly like node property filters #41

Open drkameleon opened 10 months ago

drkameleon commented 10 months ago

As of the latest PR, we can actually set properties for edges and create relevant queries.

However, the capabilities are not the same.

For example, we can do:

person [age: -> above: 30]

(if person is a node)

...but we can do:

person [
     livedIn: |> place [][
          duration: -> above 2
     ]
]

(where livedIn is an edge)

This has to be fixed. Pretty much, we'd have to copy the "filter-nodes-based-on-properties" implementation and replicate that in the equivalent for our edges.