I somehow see that we duplicate a lot of functionality that is available for aggregation/order by/skip limit
in working with collections.
It would be great if we could find a way of merging the two?
Perhaps it is really time to look into subqueries? Aka cypher queries on collections?
Don't know if it makes sense or not.
> start n=node(0)
match n--m
> with collect(m) as coll
return (
start x in coll // or start x = coll
where x.foo > 5
return
x.name
order by x.age desc
limit 2
)
could perhaps be simplified to when only returning x
return (
x in coll // or x = coll
where x.foo > 5
order by x.age desc
limit 2
)
> --
>
>