Fix accidentally hardcode label in searching upstream nodes

This commit is contained in:
Ken Chen 2025-06-28 10:50:56 +08:00
parent 7c8f65d020
commit b586bdc02f

View file

@ -809,7 +809,7 @@ class MongoGraphStorage(BaseGraphStorage):
"$unionWith": { "$unionWith": {
"coll": "chunk_entity_relation", "coll": "chunk_entity_relation",
"pipeline": [ "pipeline": [
{"$match": {"_id": "LightRAG"}}, {"$match": {"_id": label}},
{ {
"$graphLookup": { "$graphLookup": {
"from": "chunk_entity_relation_edges", "from": "chunk_entity_relation_edges",