As there is no toSet in Cypher you'll have to do something like this:

MATCH (n)
WITH head(labels(n)) as label, keys(n) as keys
UNWIND keys as key
RETURN label, collect(distinct key);


On Tue, Sep 1, 2015 at 12:08 PM, Marwa Elabri <[email protected]> wrote:

>
>
> thank you
>>
> but your query retun the properties of each node and relationship
> please i want to make the union of all properties that are contained in
> entities(nodes) that have the same type or relationship
> for exmple i have 2 nodes  their type is student
> for student 1 their properties are: name, age
> student 2 their properties are: name, average, grade
> so i want to show for the node student {name,age,average,grade} without
> repetition
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to