From 9aaa7d2dd3e6386e6f61ef3a93e0e69077949f1a Mon Sep 17 00:00:00 2001 From: DavIvek Date: Fri, 27 Jun 2025 15:09:22 +0200 Subject: [PATCH] fix drop function in Memgraph implementation --- lightrag/kg/memgraph_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/kg/memgraph_impl.py b/lightrag/kg/memgraph_impl.py index bf870154..36f0186b 100644 --- a/lightrag/kg/memgraph_impl.py +++ b/lightrag/kg/memgraph_impl.py @@ -537,7 +537,7 @@ class MemgraphStorage(BaseGraphStorage): """ try: async with self._driver.session(database=self._DATABASE) as session: - query = "DROP GRAPH" + query = "MATCH (n) DETACH DELETE n" result = await session.run(query) await result.consume() logger.info(