2011/10/28 Andres Taylor <andres.tay...@neotechnology.com>

> Hi all!
>
> I'm looking to make Cypher more consistent, and so less surprising. Cypher
> today has two places where predicates are used, the WHERE clause, and for
> the ALL/ANY/NONE/SINGLE functions.
>
> It looks like:
>
> WHERE <predicate>
> ALL(<identifier> in <iterable> : <predicate>)
> etc
>
> Any progress on this? My first feel is that it's too program-language:y
but don't really know how to make it great.


> Now I'm thinking about adding preciates to the MATCH clause, e.g: MATCH
> a-[r? : <predicate>]->b
> This is only interesting for optional relationships - if the predicate is
> false, r will be null. If this predicate was in the WHERE clause, it would
> filter out the whole subgraph instead, which is very different.
>
> Looking at this example, the colon bothers me. It's too close to the
> relationship type. So, I'm thinking of changing it to:
> WHERE <predicate>
> ALL(<identifier> in <iterable> WHERE <predicate>)
> MATCH a-[r? WHERE <predicate>]->b
>
> What do you think?
>
> Andrés
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to