When i test without relationships like this :
MATCH p=(no {name:'nodeName'})<-[:enfant*0..]-(parent:application)
WITH p
unwind nodes(p) as n
with collect( distinct {id: id(n), name: n.name, labels: labels(n)}) as nl
RETURN {nodes: nl}
i have a reponse :
{"nodes":[{"name":"nodeName","id":111,"labels":["application"]}]}
so the problem is in the collect() with relationships because its empty, i don't know how can i fix that ?