Label: :IA_Function
Property: type: NodeManagement
Inherits from: Function

Bundles actions related to managing nodes.

Function parameters

Key Description Default value Possible values
action The action to perform. string; see below
params The parameters for the given action. See below for possible values. object; see below

Each action requires specific parameters. Below are the possibilities.

action Description params
create Create a node. Node to create
read Find a node. Only id, properties.uuid or properties.iaName are used. Node to read
update Update a node. Node to update
delete Delete a node. Only id, properties.uuid or properties.iaName are used. Node to delete
import Import a set of nodes and relations. * nodes: Array of nodes,
relations: Array of relation
idProperty: (optional)

* The ids of nodes in the import action are only used as reference for relations. The final ids depend on the target database. To update existing nodes and relations, they should have a uniquely identifying propery. This property can then be specified as idProperty (by default uuid).

Outgoing triggers

Type: success

Occurrence: When the requested action was performed successfully.

Additional event properties (besides the inherited properties):

Key Description Possible values
response The response from the performed action. See below

For each action, the response can be different. Below are the possibilities:

action response
create Created node
read Requested node
update Updated node
delete (empty)
import nodes: (object) created nodes,
relations: (object) created relations *

* The nodes and relations in the response are both objects, where the keys are the original ids, and the values the corresponding entities in the database (note that the final ids may be different than the ids specified in the input).