apoc.periodic.submit

Procedure APOC Core

apoc.periodic.submit('name',statement,params) - creates a background job which executes a Cypher statement once. The parameter 'params' is optional and can contain query parameters for the Cypher statement

Signature

apoc.periodic.submit(name :: STRING?, statement :: STRING?, params = {} :: MAP?) :: (name :: STRING?, delay :: INTEGER?, rate :: INTEGER?, done :: BOOLEAN?, cancelled :: BOOLEAN?)

Input parameters

Name Type Default

name

STRING?

null

statement

STRING?

null

params

MAP?

{}

Output parameters

Name Type

name

STRING?

delay

INTEGER?

rate

INTEGER?

done

BOOLEAN?

cancelled

BOOLEAN?

Usage Examples

CALL apoc.periodic.submit(
  "create-person",
  "CREATE (:Person {name: 'Michael Hunger'})"
);
Table 1. Results
name delay rate done cancelled

"create-person"

0

0

FALSE

FALSE