I am trying to figure out why my proposal queries don't work in your setup. Unfortunately I'm not familiar with SpringData Neo4j.
Do you mean that in your setup the users MUST be returned as individual rows and not as a list (single row)?
Then really...
@chris3 @Thomas_Silkjaer
I found another way
My new query should be really really efficient, because in contrast to my first suggestion it does not aggregate a huge list at any point of time, but instead uses ordinary records/rows that are truncate...
Ah, I totally see what you're up to.
I'm completely new to Neo4j, but I might have found a solution for you.
The key problem we're trying to solve here is "dragging" along a mid-query value to the final RETURN statement. The obvious solution would be...