mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-27 08:58:48 +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,
|
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…
Reference in New Issue
Block a user