0.1.15 • Published 3 months ago

airtable-discovery v0.1.15

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

Getting Started with Airtable Discovery tool

WARNING : This project is currently the definition of dirtiness

As Airtable Projects can be defined by a large amount of people and change fast, using it as a database can be a bit tricky. This tool is here to help you discover your Airtable base and its content.

Requirements

Your target project need the dotenv package to be installed. If it's not the case, you can install it with the following command:

bash npm install dotenv

How to use

  1. Copy past the the discoverAirtableSchema.js at the root of your project, with the types folder.
  2. Copy the .env.example and fill the token and the base id.
  3. run node discoverAirtableSchema.js and wait for the result.
  4. You now have all your tables defined in the types folder, as well as mapper functions to deal with field name having whitespaces or special characters.
  5. The AirtableRelationTable enum in the utils.ts file creates a relationship between the clean name of your table (no whitespaces or special characters) and the name of the table in Airtable. You can use it to create a relationship between your tables.

Now, using the Airtable package, you can work this way :

 base(AirtableRelationTable.MYTABLE)
      .select({
      })
      .eachPage(
        (records, fetchNextPage) => {
          const mappedData = getMappedDataMYTABLE(records);
        },
        (err) => {
        ...
        }
      );
0.1.15

3 months ago

0.1.14

3 months ago

0.1.12

4 months ago

0.1.13

4 months ago

0.1.10

5 months ago

0.1.11

5 months ago

0.1.9

5 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago