fix deprecated cypher pattern (#993)

This commit is contained in:
Preston Rasmussen 2025-10-09 16:12:55 -04:00 committed by GitHub
parent 604e3199a3
commit 1e35306126
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,8 +170,7 @@ class Node(BaseModel, ABC):
await session.run( await session.run(
""" """
MATCH (n:Entity|Episodic|Community {group_id: $group_id}) MATCH (n:Entity|Episodic|Community {group_id: $group_id})
CALL { CALL (n) {
WITH n
DETACH DELETE n DETACH DELETE n
} IN TRANSACTIONS OF $batch_size ROWS } IN TRANSACTIONS OF $batch_size ROWS
""", """,
@ -278,8 +277,7 @@ class Node(BaseModel, ABC):
""" """
MATCH (n:Entity|Episodic|Community) MATCH (n:Entity|Episodic|Community)
WHERE n.uuid IN $uuids WHERE n.uuid IN $uuids
CALL { CALL (n) {
WITH n
DETACH DELETE n DETACH DELETE n
} IN TRANSACTIONS OF $batch_size ROWS } IN TRANSACTIONS OF $batch_size ROWS
""", """,