Skip to content

DataStore Query

Query data from your built-in DataStore. Use this node to read rows from any table you have created in Database Studio.

Configuration

FieldDescriptionNotes
OperationChoose how many rows to returnGet Many (default) returns multiple rows. Get One returns only the first matching row.
TableThe DataStore table to querySelect from a list of your existing tables.
ColumnsWhich columns to include in the resultsLeave empty to return all columns. Select specific columns to reduce the output size.
WhereFilter conditions to narrow down resultsAdd one or more conditions (see Where Conditions below).

Get Many Options

These fields appear only when Operation is set to Get Many:

FieldDescriptionNotes
Order ByColumn to sort results byOptional. Select a column from the table.
DirectionSort directionAscending (default) or Descending.
LimitMaximum number of rows to returnOptional. Must be at least 1.
OffsetNumber of rows to skip before returning resultsOptional. Useful for pagination in combination with Limit.

Additional Options

FieldDescriptionNotes
Output Decimals as NumbersConvert string-encoded decimal values to numbers in the outputDisabled by default. Enable when downstream nodes need numeric values rather than strings.

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.

Output

Get Many returns a list of rows, where each row is an object with column names as keys.

Get One returns a single object with column names as keys. If no rows match the conditions, an empty object is returned.

TIP

To fetch all orders from the last 7 days, set the Where condition to the date column, use the greater than operator, and reference a date value calculated by an upstream node.