Filter nodes by :base for entity label retrieval in Neo4j
This commit is contained in:
parent
c72c149e71
commit
fc3208cf5b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue