mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 16:43:35 +00:00
community[patch]: Fix neo4j enhanced schema (#21582)
This commit is contained in:
parent
66a4da8ad0
commit
9fce03e7db
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user