What it does
Run up to 10 query_table queries in one call, on the same or different tables. Each item takes what query_table takes. results holds one answer per query in order, with its index: the query_table answer, or { table, error } for a query that failed, while the others still run.
Plans
Works on every plan: Free, Basic, Pro and Ultra.
Parameters
| Name | Type | About |
|---|---|---|
queriesrequired | array of objects | The queries, each with table and the other query_table options. |
Example
Call query_tables with these arguments:
{
"queries": [
{
"table": "rules",
"where": {
"core": true
},
"fields": [
"summary"
]
},
{
"table": "skills",
"search": "deploy",
"fields": [
"slug",
"title"
],
"limit": 5
}
]
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- Count, find and change many rowsYour agent answers questions about a table without reading every row.