fetchRecordsWithQueryBuilder method
Future<List<AirtableRecord> >
fetchRecordsWithQueryBuilder(
- String tableName,
- AirtableQueryCrud queryBuilder, {
- bool paginate = true,
- String view = 'Grid view',
Fetches records using the query builder.
queryBuilder
: An instance ofAirtableQueryBuilder
for dynamic filtering.paginate
: If true (default), fetches all pages of records.view
: The view in Airtable from which to fetch records (default is 'Grid view').
Returns a Future that resolves to a list of AirtableRecord.
Throws an AirtableException if the request fails.
Implementation
Future<List<AirtableRecord>> fetchRecordsWithQueryBuilder(
String tableName, AirtableQueryCrud queryBuilder,
{bool paginate = true, String view = 'Grid view'}) {
return fetchRecordsWithFilter(
tableName,
queryBuilder.build(),
paginate: paginate,
view: view,
);
}