I would like to match something and I also want the paths for those matches. Then I want to do a consecutive match but I also want to preserve the last results, so I tried to pass those result elements as parameters to the next match:
MATCH path = (n)-->(e) MATCH (path), (x) RETURN path, x
However I get the error:
Neo.ClientError.Statement.SyntaxError: Type mismatch: paths defined with conflicting type Path (expected Node)
How can I modeling something like that in a Cypher query ?