Documentation
Dataflows
Guides
Using Multiple Actions

Using Multiple Actions

Querier's dataflows can combine multiple actions. This time, we will explain using the following dataflow as an example.

action1

Retrieve user data from MySQL

SELECT * FROM users LIMIT 20;

action2

Format data for multi-select

※ The result of action1 can be referred to as {{ action1.data }}.

const multiSelectLabels = {{ action1.data }}.map(d => d.email);
const multiSelectValues = {{ action1.data }}.map(d => d.id );
 
return {
  multiSelectLabels,
  multiSelectValues
}