We do distinct on all fields no part of an aggregate result.

so you could do

return b, count(*)

to get distinct b's

Michael

Sent from my iBrick4


Am 03.07.2011 um 00:03 schrieb Josh Adell <[email protected]>:

> Is it possible to get distinct results in Cypher?  Something like
> 
> START a=(1) MATCH (a)-[:FOOTYPE]->(b) RETURN DISTINCT b
> 
> I have a scenario where a single node may be connected multiple times
> to another node, and I only want that other node to be returned once.
> I'd hate to have to do this in my client code.  If this feature isn't
> available in Cypher, consider this a feature request.
> 
> Thanks!
> 
> -- Josh Adell
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to