Skip to content

DataStore Update

Update existing data in your built-in DataStore. Use this node to modify rows in any table you have created in Database Studio.

Configuration

FieldDescriptionNotes
TableThe DataStore table to updateSelect from a list of your existing tables.
Update Fields MappingMap new values to table columnsEach mapping entry has a Column (the column to update) and an Input (the new value, which can reference upstream data using expressions).
WHERE ConditionsFilter which rows to updateAdd one or more conditions to target specific rows. See Where Conditions below.
Allow NULL ValuesWhether to include null or empty values in the updateDisabled by default. When disabled, columns mapped to null or empty values are skipped.
Require WHERE ConditionsWhether WHERE conditions are mandatoryEnabled by default. Prevents accidental updates to all rows in the table.

Where Conditions

The Where field lets you build filter conditions without writing SQL. Each condition has three parts:

  • Column -- The column to filter on.
  • Operation -- The comparison operator (equals, not equals, greater than, less than, contains, starts with, ends with, in, not in, is null, is not null, is empty, is not empty).
  • Value -- The value to compare against. Supports referencing data from upstream nodes using expressions.

You can combine multiple conditions with AND or OR logic.

WARNING

Disabling Require WHERE Conditions allows the node to update every row in the table. Only disable this when you intentionally want to modify all rows.

Output

FieldDescription
successtrue if the update succeeded
tableThe name of the table
affected_rowsThe number of rows that were updated
updated_dataAn object containing the values that were set
updated_recordsA list of the full row data after the update was applied

TIP

To update a customer's email address, set the WHERE Conditions to match id equals {{customer_id}} and map the email column to the new email value from an upstream node.