Interface NodeSetEvent

This event is dispatched before and after node set code has been executed. The global return value for the node set code can be found here.

Hierarchy

Properties

duration?: number

How long the event took when applicable

err?: Error

If present, an error occurred and this is the error.

field: string

The field where the set event occured

graphId: string

The graphId where the set event occured

id: string

Unique ID of the event

nodeId: string

The nodeId where the set event occured

nodeInterface: NodeInterface

The node interface passed to the set function.

return?: any

Return value if any. This requires the set function to return in the global scope. This has no impact on graph execution, the value does not connect to other nodes. This value is only present on the afterSet event.

setContext: Function

Calling the setContext function will allow you to set the context of the set function. This is useful to do setup on every set function that runs to attach context data to the function

time: number

The time the event occurred on

Generated using TypeDoc