I have used the official .NET driver to create a small graph representing my domain. It all works fine. I am also able to retrieve individual nodes and convert them to typed objects. So far so good.
But then I want to do some more complex questions like:
- Retrieve all relations from the specified node and also include all the related nodes on the other end
- Retrieve all nodes "downward" from the specified node to generate a relational tree in my client
Most of the API makes sense but I find the handling of the result object strange and cumbersome. I can handle simple results but when it gets complex it goes beyond my understanding.
This query makes perfect sense and works in the direct browser window, but I just can't figure out how to get meaningful resulst through the driver:
MATCH (n {id:54})-[r]->(m)
RETURN r,m
What is best practice in .NET to achieve the intended result with my two queries?