This module wraps airtable in feathers common API to make it callable by frameworks such as React Admin.
This is currently Alpha.
$ npm install --save feathers-airtable
Important:
feathers-airtable
implements the Feathers Common database adapter API and querying syntax.
service(options)
Returns a new service instance initialized with the given options.
const service = require('feathers-airtable');
app.use('/my-table', service({
apiKey: '123123213'
baseId: '123123'
tableName: 'Table 1'
}));
app.use('/my-table', service({ apiKey, baseId, tableName }));
Options:
apiKey
(required) - Airtable API Key tableName
(required) - Name of your tablebaseId
(required) - (e.g. appAbba123456)
See the clients chapter for more information about using Feathers in the browser and React Native.
import feathers from '@feathersjs/feathers';
import airtable from 'feathers-airtable';
const app = feathers()
.use('/my-table', airtable({
apiKey: '123123213'
baseId: '123123'
tableName: 'Table 1'
}));
const myTable = app.service('my-table');
myTable.create({
text: 'Message from React Native'
});
I would strongly recommend not using this in the browser directly as Airtable API key grants full permissions!
To develop you need to do the following
jest -i
or jest --watch -i
(i makes sure the tests are run sequentially) Copyright (c) 2020
Licensed under the MIT license.