import { Airtable } from "https://deno.land/x/airtable@v0.2.2/mod.ts";
Update multiple for selected base and table
const updateMultiple = await airtable.update(
[
{
id: "recXXXXXXXXXXXXXX",
fields: { ["Name"]: "Adult boi", ["Age"]: 30 },
},
{
id: "recXXXXXXXXXXXXXX",
fields: { ["Name"]: "Yung boi", ["Age"]: 15 },
},
],
{ typecast: true }
);
Parameters
optional
options: RecordOptionsUpdate single records for selected base and table
const updateOne = await airtable.update("recXXXXXXXXXXXXXX", {
["Name"]: "Adult boi",
["Age"]: 30,
});