Airtable GraphQL API via Hasura REST Connector

Airtable is a well loved, no-code information manager used by companies of all sizes to perform many different workloads. Leverage Airtable data through Hasura's API ecosystem by using this action transform.

This integration creates a generic interface with Airtable that requires you to pass the name of your Table within your base as the "table" parameter of the action request.

Using this E-Commerce example from Airtable you would access the Furniture table the following way.

{
  airtable(table: "Furniture") {
    records
  }
}

Configuring an Action Transform

You'll need the following environment variables.

AIRABLE_API_KEY: "keyXXXXXXXXXXXXXX"
AIRTABLE_BASE_PATH: "https://api.airtable.com/v0/<your_app_id>"

If you are using Docker you can provide these environment variables along with the rest of your Hasura configuration information.

Locate your API Key in your Airtable settings. If no key exists, you make need to generate a new one.
Airtable API Key Your API base path will be available on a per-base basis. You can find all your Airtable bases here.

Importing an Action Transform

Importing actions and events into Hasura apply one or more actions. Actions based on request configurations and will need metadata to be applied. Events need underlying table structure to trigger the events.

Steps required for this integration:

  • Metadata Apply

Metatadata Apply

To apply metadata into your project. You will need:

  1. The Hasura CLI installed.
  2. Run "hasura metadata apply" from the root folder of your Hasura metadata project. In this project, you can find that folder under /hasura.

More information about Hasura CLI can be found in the documentation.

SPECS
Released: December 14, 2021
Developed by: Hasura
Category: CMS