• This repository has been archived on 17/Mar/2022
  • Stars
    star
    100
  • Rank 340,703 (Top 7 %)
  • Language
    JavaScript
  • Created almost 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Deploy a GraphQL API for an Airtable base

Deprecated

Unfortunately I don't have time to work on this project anymore and wont be making any further updates.

Airtable GraphQL

Quickly deploy a GraphQL API for an airtable base in just a few lines of code.

const AirtableGraphQL = require("airtable-graphql");
api = new AirtableGraphQL("airtable_api_key");
api.listen();

Setup

npm install airtable-graphql --save

Pull your airtable schema by running the airtable-graphql pull command in the root folder of your project.

$ airtable-graphql pull --email=[your_email] --password=[your_password] --base=[base_id]

This will create a schema.json file which describes all of your bases tables and columns.

Create a file called index.js and add the following.

const AirtableGraphQL = require("airtable-graphql");
api = new AirtableGraphQL("airtable_api_key");
api.listen();

Run node index.js

That's it!