npm

Need private packages and team management tools?Check out npm Orgs. »

@gridsome/source-airtable

0.1.0 • Public • Published

@gridsome/source-airtable

Airtable source for Gridsome.

Install

  • yarn add @gridsome/source-airtable
  • npm install @gridsome/source-airtable

Usage

module.exports = {
  plugins: [
    {
      use: '@gridsome/source-airtable',
      options: {
        apiKey: 'YOUR_API_KEY', // required
        baseId: 'YOUR_BASE_ID', // required
        tableName: 'YOUR_TABLE_NAME', // required
        typeName: 'YOUR_TYPE_NAME', // required
        route: 'YOUR_OPTIONAL_ROUTE' // optional
      }
    }
  ]
}

Options

  1. apiKey: This can be found when logged in to airtable.com, under "ACCOUNT > API".
  2. baseId: This can be found by going to https://airtable.com/api, clicking on your workspace, and will be visible in the url: https://airtable.com/<YOUR_BASE_ID>/api/docs#curl/introduction
  3. tableName: This is the full name of your chosen workspace table, for example "Furniture" is the first and main table in the pre-defined workspace named "Product Catalog & Orders"
  4. typeName: Your chosen type name. The type name "Product" is an example of an fitting route for the pre-defined airtable workspace named "Product Catalog & Orders"
  5. route: Your chosen optional route name. The route "/products/:name" is an example of an fitting route for the pre-defined airtable workspace named "Product Catalog & Orders"

install

npm i @gridsome/source-airtable

Downloadsweekly downloads

17

version

0.1.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability