getTable is not a function

410 0
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer

Hi All,

I'm juste trying to write a small script in node js to get a list of a db I have here in Airtable.

As the documentation said, I've used

and my code is as follow : 


import Airtable from 'airtable';
const baseId = '****';
const tableIdOrName = '****';
Airtable.configure({ apiKey: **** })
const airtable = new Airtable({endpointUrl: `${baseId}`});
console.log("airtable",airtable);    ==>>> {}
console.log("airtable",airtable.getTable("tableIdOrName")); ==> "TypeError: airtable.getTable is not a function"


Thank you for your help!

0 Replies 0