Is it possible to extract a limited set of nodes and the total number of nodes in a single cypher request?
match (n:Molecule) with n, count(*) as nb limit 10 return {N: nb, nodes: collect(n)}
The above query returns nodes correctly, but returns 1 as the number of nodes. Of course, I understand why it returns 1, since there is no grouping, but cannot figure out how to fix it.
source share