langchain.graphs.memgraph_graph.MemgraphGraph

class langchain.graphs.memgraph_graph.MemgraphGraph(url: str, username: str, password: str, *, database: str = 'memgraph')[source]

Bases: Neo4jGraph

Memgraph 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.

refresh_schema()

Refreshes the Memgraph graph schema information.

Attributes

get_schema

Returns the schema of the Neo4j database

query(query: str, params: dict = {}) List[Dict[str, Any]]

Query Neo4j database.

refresh_schema() None[source]

Refreshes the Memgraph graph schema information.

property get_schema: str

Returns the schema of the Neo4j database