Function pnodes() collects the all NODEs in a path in a list, and return this list.
Arguments:
Returns:
Sample graph: (to be used for the following examples)

Example: Calculate the share holding path of each UBO from F001, return the NODE list of each path
UQLn({_id == "F001"}).le()[:5].n({@human} as UBO) as p return pnodes(p)
Result[{"id":"F001","uuid":"1","schema":"firm","values":{}},{"id":"H001","uuid":"3","schema":"human","values":{}}] [{"id":"F001","uuid":"1","schema":"firm","values":{}},{"id":"F002","uuid":"2","schema":"firm","values":{}},{"id":"H001","uuid":"3","schema":"human","values":{}}] [{"id":"F001","uuid":"1","schema":"firm","values":{}},{"id":"F002","uuid":"2","schema":"firm","values":{}},{"id":"H002","uuid":"4","schema":"human","values":{}}]