0.2.0 • Published 4 years ago

ra-data-aws-amplify v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

ra-data-aws-amplify

A GraphQL data provider for react-admin built with AWS Amplify and tailored to target a simple GraphQL implementation.

Installation

Install with:

npm install --save ra-data-aws-amplify

or

yarn add ra-data-aws-amplify

Usage

import awsconfig from './aws-exports';
import * as queries from './graphql/queries.js'
import * as mutations from './graphql/mutations.js'
...
componentDidMount() {
    ...
    buildDataProvider({awsconfig, queries, mutations}) 
        .then(dataProvider => this.setState({ dataProvider }))
    ...
}
...

Contributing

Run the tests with this command:

make test