This question is related to that one.
I explain my little usecase to better understand my problem :
I have this kind of graph
(doc)-[contain]-(sentence)-[with]-(word)
Nodes (word) can have semantic relations between them (word)-[rel]-(word)
I want to return (doc) with a number of [rel] > 10
This query can do that :
MATCH (doc:document)-[contain]-(sentence)-[with]-(ng1:word)-[rel:relations]-(ng2:word)
WITH doc, count(rel) as nbRels, collect(rel) as rels
WHERE nbRels > 10 RETURN doc, nbRels, rels
But I don't know what (word) are concerned by each [rel] found.
Is it possible to do know and to return that?
Thanks,