apoc.trigger.resume

Procedure APOC Core

CALL apoc.trigger.resume(name) | it resumes the paused trigger

Signature

apoc.trigger.resume(name :: STRING?) :: (name :: STRING?, query :: STRING?, selector :: MAP?, params :: MAP?, installed :: BOOLEAN?, paused :: BOOLEAN?)

Input parameters

Name Type Default

name

STRING?

null

Output parameters

Name Type

name

STRING?

query

STRING?

selector

MAP?

params

MAP?

installed

BOOLEAN?

paused

BOOLEAN?

Enable Triggers

By default triggers are disabled. We can enable them by setting the following property in apoc.conf:

apoc.conf
apoc.trigger.enabled=true

Usage Examples

If we we have paused the trigger created by the example in apoc.trigger.add, we can resume it by running the following query:

CALL apoc.trigger.resume("count-removals");
Table 1. Results
name query selector params installed paused

"count-removals"

MATCH (c:Counter) SET c.count = c.count + size([f IN $deletedNodes WHERE id(f)  0])

{}

{}

TRUE

FALSE