Hi, for full context please check out the stackoverflow post.
The part that is relevant here:
I have this query
Match(n1: Red)
Where n1.Id = "someId"
Call apoc.path.subgraphAll(n1,{ minLevel: 0,maxLevel: 100,relationshipFilter: "link",labelFilter: "+Red|Blue"})
Yield nodes, relationships
Return nodes, relationships
It works as intended. The graph has a structure that is roughly alternating "Red" and "Blue" nodes with the same type of edge between them.
My problem is that I need to separate out the Red and Blue nodes into separate sets to make the deserialization work in C#. I think I can manage once I have the two sets separated.
So how do I use the nodes set from the yield and separate it based on node type?
In the end I want to "return Red, Blue, Relationships"