Skip to main content

Query records

The records matching every filter, sorted, as a table (and as a list of dictionaries).

Command in the Data store toolkit · id ooa.data/query_records · 6 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
EntityStringYesThe entity's name.
FiltersListNoEach {field, op, value}; op is =, !=, >, >=, <, <=, contains, starts_with, empty or not_empty. Text compares without case.
Sort byStringNoA field to sort by.
DescendingBooleanNofalseLargest or latest first.
LimitNumberNo1000At most this many records.
OffsetNumberNo0Skip this many first (for pages).

Outputs​

OutputTypeWhat it is
tableTableid and every field, one row per record.
recordsListThe records as dictionaries.
totalNumberHow many records match (all pages).