Fix accidentally hardcode max depth in searching upstream nodes

This commit is contained in:
Ken Chen 2025-06-28 11:40:39 +08:00
parent b586bdc02f
commit 6574dfb7ea

View file

@ -817,7 +817,7 @@ class MongoGraphStorage(BaseGraphStorage):
"connectFromField": "source_node_id",
"connectToField": "target_node_id",
"as": "connected_edges",
"maxDepth": 3,
"maxDepth": max_depth,
"depthField": "depth",
}
},