MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / getRecords

Method getRecords

integrations/airtable/src/base.ts:34–53  ·  view source on GitHub ↗
(key: IntegrationTaskKey, params?: AirtableSDK.SelectOptions<TFields>)

Source from the content-addressed store, hash-verified

32 }
33
34 getRecords(key: IntegrationTaskKey, params?: AirtableSDK.SelectOptions<TFields>) {
35 return this.runTask(
36 key,
37 async (client) => {
38 const result = await client
39 .base(this.baseId)
40 // official types are wrong - we need to use our extended AirtableFieldSet here
41 // @ts-ignore
42 .table<TFields>(this.tableName)
43 .select(params)
44 .all();
45 return result.map((record) => toSerializableRecord<TFields>(record));
46 },
47 {
48 name: "Get Records",
49 params,
50 properties: [...tableParams({ baseId: this.baseId, tableName: this.tableName })],
51 }
52 );
53 }
54
55 getRecord(key: IntegrationTaskKey, recordId: string) {
56 return this.runTask(

Callers 1

airtable.tsFile · 0.80

Calls 5

toSerializableRecordFunction · 0.85
tableParamsFunction · 0.85
runTaskMethod · 0.45
allMethod · 0.45
baseMethod · 0.45

Tested by

no test coverage detected