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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Entity | String | Yes | The entity's name. | |
| Filters | List | No | Each {field, op, value}; op is =, !=, >, >=, <, <=, contains, starts_with, empty or not_empty. Text compares without case. | |
| Sort by | String | No | A field to sort by. | |
| Descending | Boolean | No | false | Largest or latest first. |
| Limit | Number | No | 1000 | At most this many records. |
| Offset | Number | No | 0 | Skip this many first (for pages). |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | id and every field, one row per record. |
| records | List | The records as dictionaries. |
| total | Number | How many records match (all pages). |