update deletion
This commit is contained in:
parent
7baa175fbe
commit
42bbd93c38
1 changed files with 2 additions and 1 deletions
|
|
@ -103,7 +103,8 @@ class Node(BaseModel, ABC):
|
||||||
case GraphProvider.NEO4J:
|
case GraphProvider.NEO4J:
|
||||||
records, _, _ = await driver.execute_query(
|
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
|
WITH collect(r.uuid) AS edge_uuids, n
|
||||||
DETACH DELETE n
|
DETACH DELETE n
|
||||||
RETURN edge_uuids
|
RETURN edge_uuids
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue