Properly annotate the fields query paramter as an array
The airtable API will interpret multiple fields parameters as an array without the brackets,
but if you only ask for one field it fails. With this change, asking for one field
works.
@@ -149,7 +149,7 @@ impl Airtable {
) -> Result<Vec<Record<T>>, APIError> {
let mut params = vec![("pageSize", "100".to_string()), ("view", view.to_string())];
for field in fields {
- params.push(("fields", field.to_string()));
+ params.push(("fields[]", field.to_string()));
}
// Build the request.
