min is an aggregation function for rows, not for collections

You can do:

with unwind coll as x
return min(x)



On Wed, Jul 23, 2014 at 5:05 PM, Benjamin Gustafsson <
[email protected]> wrote:

> Hi
>
> Supposedly collections can be joined when adding them together
>
> with collect(1) +collect(2) as aa
> return aa
>
> And yes, it works
>
>
>
> Now I'm trying to get minimum value from such a collection.
>
> with collect(1) +collect(2) as aa
> return min(aa)
>
> It does not work. Is this by design?
>
> //Benjamin
>
> --
> 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