Wondering what’s next for npm?Check out our public roadmap! »

ra-data-aws-amplify

0.2.0 • Public • Published

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

Keywords

none

Install

npm i ra-data-aws-amplify

DownloadsWeekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

5.61 kB

Total Files

7

Last publish

Collaborators

  • avatar