Filter nodes by :base for entity label retrieval in Neo4j
This commit is contained in:
@@ -906,7 +906,7 @@ class Neo4JStorage(BaseGraphStorage):
|
|||||||
|
|
||||||
# Method 2: Query compatible with older versions
|
# Method 2: Query compatible with older versions
|
||||||
query = """
|
query = """
|
||||||
MATCH (n)
|
MATCH (n:base)
|
||||||
WHERE n.entity_id IS NOT NULL
|
WHERE n.entity_id IS NOT NULL
|
||||||
RETURN DISTINCT n.entity_id AS label
|
RETURN DISTINCT n.entity_id AS label
|
||||||
ORDER BY label
|
ORDER BY label
|
||||||
|
Reference in New Issue
Block a user