langchain.graphs.memgraph_graph.MemgraphGraph¶
- class langchain.graphs.memgraph_graph.MemgraphGraph(url: str, username: str, password: str, *, database: str = 'memgraph')[source]¶
Bases:
Neo4jGraphMemgraph wrapper for graph operations.
Create a new Memgraph graph wrapper instance.
Methods
__init__(url, username, password, *[, database])Create a new Memgraph graph wrapper instance.
query(query[, params])Query Neo4j database.
Refreshes the Memgraph graph schema information.
Attributes
Returns the schema of the Neo4j database
- query(query: str, params: dict = {}) List[Dict[str, Any]]¶
Query Neo4j database.
- property get_schema: str¶
Returns the schema of the Neo4j database