fix drop function in Memgraph implementation

This commit is contained in:
DavIvek 2025-06-27 15:09:22 +02:00
parent eed43e071c
commit 9aaa7d2dd3

View file

@ -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(