Trigger Extended procedures

APOC Core provides a set of procedures for running Cypher queries that are called when data in Neo4j is changed (created, updated, deleted).

In addition, APOC Extended provides some helper procedures to more easily manipulate Cypher queries and solve some transaction use cases that cannot be solved otherwise.

Helper Functions

Qualified Name Type Release

apoc.trigger.nodesByLabel

apoc.trigger.nodesByLabel(labelEntries, label) - function to filter labelEntries by label, to be used within a trigger kernelTransaction with $assignedLabels, $removedLabels, $assigned/removedNodeProperties.

Function

Apoc Extended

apoc.trigger.propertiesByKey

apoc.trigger.propertiesByKey(propertyEntries, key) - function to filter propertyEntries by property-key, to be used within a trigger kernelTransaction with $assignedNode/RelationshipProperties and $removedNode/RelationshipProperties. Returns [old,new,key,node,relationship].

Function

Apoc Extended

apoc.trigger.toNode

apoc.trigger.toNode(node, removedLabels, removedNodeProperties) - function to rebuild a node as a virtual one, to be used in triggers with a not 'afterAsync' phase.

Function

Apoc Extended

apoc.trigger.toRelationship

apoc.trigger.toRelationship(rel, removedRelationshipProperties) - function to rebuild a relationship as a virtual one, to be used in triggers with a not 'afterAsync' phase.

Function

Apoc Extended