0
List Records
One script reply has been approved by the moderators Verified
Created by sebastienucrtani 929 days ago Viewed 11761 times
0
Submitted by rossmccrann Deno
Verified 926 days ago
1
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
2

3
type Airtable = {
4
  apiKey: string;
5
};
6

7
type AirtableTable = {
8
  baseId: string;
9
  tableName: string;
10
};
11
export async function main(atCon: Airtable, atTable: AirtableTable) {
12
  const airtable = new Airtable({ ...atCon, ...atTable });
13
  const result_list = await airtable.select();
14

15
  return { results: result_list };
16
}
17