2013-12-21 4 views

답변

1

shortestPath에서 나오는 경로와 패턴 내부의 관계 식별자 모두에 대해 p 식별자를 다시 사용하고 있습니다.

START root=node:people(id="$personOrFamilyId"), descendant=node:people(id="$descendant") 
MATCH p=shortestPath(root-[:child|descendant*..25]->descendant) 
RETURN EXTRACT(n in nodes(p) | n.id) as node_ids_on_path 
+0

다음과 같이 표시됩니다. extract (...) requires '| 표현 '(추출 표현식) –

+0

아, 참으로. 그것을 놓쳤습니다 - 추출 기능은 이제 파이프를 사용합니다. –

관련 문제