To make a clear picture of my problem here is the working original code:
MATCH (u:User)-[:GROUPUSER]-(g:Group) WHERE id(u)=1
WITH g,
[(g)-[:GROUPUSER]-(us:User) | id(us)] AS userIds
RETURN id(g) as id, g.name as name, userIds ORDER BY name
The resul...