right now that's not directly possible.
What you could do is to return a map:
RETURN { tag: tag, count: count(post) } as data
Michael
> Am 13.08.2015 um 12:17 schrieb Felix Dietze <[email protected]>:
>
> Hi everyone,
>
> I'd like to include results of aggregate functions in graph results.
> Right now I have to look at the result-rows to have access to the results.
>
> This is more effort on the client side and produces more traffic than needed.
>
> Example:
> I have the following query:
> match (tag:TAG)-->(post:POST) return tag, count(post)
>
> I can only access "count(post)" by looking at the rows.
>
> It would be nice to be able to write something like this:
> match (tag:TAG)-->(post:POST) return tag, count(post) as tag.postcount
>
> and have the result as a property "postcount" on a node in the graph result.
>
>
> Is this somehow possible?
>
> Thank you
> Felix
>
> --
> 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]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout
> <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.