graflo.db.cypher.delete¶
Cypher statements that remove nodes and relationships by their keys.
Each statement unwinds $data, a list of maps, so one statement serves a
chunk of documents on Neo4j, Memgraph and FalkorDB alike.
Functions:¶
delete_nodes(run, label, key_docs, match_keys, chunk_size)
¶
Run :func:delete_nodes_query over key_docs, a chunk per statement.
Source code in graflo/db/cypher/delete.py
delete_nodes_query(label, match_keys)
¶
Remove the nodes of label matching a row of $data, with their relationships.
Source code in graflo/db/cypher/delete.py
delete_relationships(run, source_label, target_label, relation, endpoints, source_keys, target_keys, chunk_size)
¶
Run :func:delete_relationships_query over endpoints, a chunk per statement.
Source code in graflo/db/cypher/delete.py
delete_relationships_query(source_label, target_label, relation, source_keys, target_keys)
¶
Remove the relationships of relation between the node pairs of $data.
With no relation, every relationship from the source to the target goes.