fetchRecordsWithQueryBuilder method

Future<List<AirtableRecord>> fetchRecordsWithQueryBuilder(
  1. String tableName,
  2. AirtableQueryCrud queryBuilder, {
  3. bool paginate = true,
  4. String view = 'Grid view',
})

Fetches records using the query builder.

  • queryBuilder: An instance of AirtableQueryBuilder 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,
  );
}