update deletion

This commit is contained in:
prestonrasmussen 2025-09-12 17:02:23 -04:00
parent 7baa175fbe
commit 42bbd93c38

View file

@ -103,7 +103,8 @@ class Node(BaseModel, ABC):
case GraphProvider.NEO4J:
records, _, _ = await driver.execute_query(
"""
MATCH (n:Entity OR n:Episodic OR n:Community {uuid: $uuid})-[r]-()
MATCH (n {uuid: $uuid})-[r]-()
WHERE n:Entity OR n:Episodic OR n:Community
WITH collect(r.uuid) AS edge_uuids, n
DETACH DELETE n
RETURN edge_uuids