cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

The apoc.path.subgraphNodes function returns multiple subgraphs when end nodes filter is specified

Levani
Node

Hello guys! 

I'm using apoc.path.subgraphNodes to get a subgraph, but I'm struggling with a problem

 

CALL apoc.path.subgraphNodes(p, {
labelFilter: ">Friend|-BannedHuman|+Human",
limit: 15000
})

The problem is it only returns nodes with a "Friend" label, and even those that need Human nodes to be connected to the main graph. That bug makes the subgraphNodes function return multiple subgraphs.

Screenshot 2022-10-29 at 10.56.00 PM.png


What I expect from >Friend filter is to get a minified version of the subgraph without the filter. How to achieve it?

0 REPLIES 0