Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including airtable-graphql with all npm packages installed. Try it out:

var airtableGraphql = require("airtable-graphql")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

airtable-graphql v1.0.9

Deploy a GraphQL server for an airtable base

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!

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free