Filter nodes by :base for entity label retrieval in Neo4j

This commit is contained in:
yangdx
2025-04-02 12:53:17 +08:00
parent c72c149e71
commit fc3208cf5b

View File

@@ -906,7 +906,7 @@ class Neo4JStorage(BaseGraphStorage):
# Method 2: Query compatible with older versions
query = """
MATCH (n)
MATCH (n:base)
WHERE n.entity_id IS NOT NULL
RETURN DISTINCT n.entity_id AS label
ORDER BY label