That's awesome guys, thanks. I'll use the count(*) workaround for now, and eagerly await 1.5 :-)
Thanks again, Josh > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 3 Jul 2011 13:26:54 +0200 > From: Michael Hunger <[email protected]> > Subject: Re: [Neo4j] Distinct results in Cypher > To: Neo4j user discussions <[email protected]> > Cc: "[email protected]" <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > 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 > > > ------------------------------ > > Message: 2 > Date: Sun, 3 Jul 2011 13:33:39 +0200 > From: Peter Neubauer <[email protected]> > Subject: Re: [Neo4j] Distinct results in Cypher > To: Neo4j user discussions <[email protected]> > Message-ID: > <caf59rw4pxw740fhf_t5sf8jncqgb+pexrz02mmwtz7eugqw...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > I like DISTINCT keyword support explicitly. > > ------------------------------ > > Message: 4 > Date: Sun, 3 Jul 2011 13:48:20 +0200 > From: Michael Hunger <[email protected]> > Subject: Re: [Neo4j] Distinct results in Cypher > To: Neo4j user discussions <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > In 1.5 > > Michael > > Sent from my iBrick4 > _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

