Hello,

I am trying to get distict property values on a list of nodes.
The property value is an array in graph. Example:
node1.color = [red]
node2.color=[red]
node3.color=[green]
node4.color=[yellow]
node5.color=[red]

My cypher query:
START n=node:index(type="sometype")
RETURN distinct n.color,count(*)

it returns
[red]
[red]
[green]
[yellow]
[red]

Shouldn't it just return 3 unique colors?
if not how do I access just the first element of an array property value in
the RETURN statement (ex: RETURN distinct n.color[0]? ) ?

I am using Neo 1.6M03.



Thanks in advance,

John
_______________________________________________
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to