Skip to main content
Data operation actions allow you to interact with databases in your workflows. These actions support SQL databases (PostgreSQL, MySQL, SQLite) and MongoDB through configured integrations.
Before using data operations, ensure you have a database integration configured. See Configuration Reference for setup details.

fetch

Retrieves data from a database table using filters.

Integration ID

The database integration to query against.

Table

The database table or collection name to query.

Filters

Query filters to narrow down results. See Filter Syntax for available operators.

Single

Return a single result object instead of an array.

Fail If Empty

Treat no results as a failure, routing to the fail step.

Example


store

Stores a new record in a database table.

Integration ID

The database integration to store data in.

Table

The database table or collection name to insert into.

Fields

Data fields to store as key-value pairs.

Datasource Options

Additional datasource-specific options.

Example

If no id field is provided, a UUID will be automatically generated.

update

Updates existing records in a database table.

Integration ID

The database integration containing the records.

Table

The database table or collection name to update.

Filters

Filters to identify which records to update. See Filter Syntax for available operators.

Fields

Fields to update with their new values.

Datasource Options

Additional datasource-specific options.

Example


delete

Deletes records from a database table.

Integration ID

The database integration containing the records.

Table

The database table or collection name to delete from.

Filters

Filters to identify which records to delete. See Filter Syntax for available operators.

Datasource Options

Additional datasource-specific options.

Example


mongoquery

Executes native MongoDB queries with filter and projection support.

Integration ID

The MongoDB integration to query against.

Collection

The MongoDB collection name to query.

Filter Query

MongoDB filter query in JSON format.

Projection

MongoDB projection query in JSON format to select specific fields.

Fail If Empty

Treat no results as a failure, routing to the fail step.

Example

Dynamic filter example:
Use the stringescape template function when inserting user input into JSON queries to prevent injection attacks.

Filter Syntax

The fetch, update, and delete actions use a common filter syntax:

Available Operators

Multiple Filters Example


Next Steps

Actions Overview

Learn about action structure and chaining.

Vector Operations

Store and query vector embeddings.

Authentication

Secure your APIs with JWT and authentication.

Secrets Management

Securely store database credentials.