community[patch]: Fix neo4j enhanced schema (#21582)

This commit is contained in:
Tomaz Bratanic 2024-05-13 21:26:06 +02:00 committed by GitHub
parent 66a4da8ad0
commit 9fce03e7db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -573,9 +573,9 @@ class Neo4jGraph(GraphStore):
is_relationship: bool = False,
) -> str:
if is_relationship:
match_clause = f"MATCH ()-[n:{label_or_type}]->()"
match_clause = f"MATCH ()-[n:`{label_or_type}`]->()"
else:
match_clause = f"MATCH (n:{label_or_type})"
match_clause = f"MATCH (n:`{label_or_type}`)"
with_clauses = []
return_clauses = []