Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 847 Bytes

File metadata and controls

45 lines (34 loc) · 847 Bytes

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