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

pull/18427/head^2
Tomaz Bratanic 1 month ago committed by GitHub
parent 66a4da8ad0
commit 9fce03e7db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save