Assert Defined
Last updated
Last updated
The Assert defined node checks if a value is defined and throws an error if it's undefined. It helps enforce data requirements in your graph by stopping execution when required values are missing.
Value
The value to check for being defined
Any
Yes
Value
The original input value (if defined)
Any
Drag the Assert defined node into your graph.
Connect any value to the "Value" input.
If the value is defined, it passes through to the output.
If the value is undefined, the node throws an error and stops graph execution.
Use this node to validate required inputs early in your graph.
This creates a clear failure point rather than propagating undefined values.
Has Value: For checking if a value is defined without throwing an error.
If: For conditionally executing different paths based on value existence.
Input Validation: Ensure required parameters have values before processing.
Error Prevention: Stop graph execution early if critical data is missing.
API Response Validation: Verify that expected properties exist in data responses.