Skip to content

procoders/ra-data-aws-amplify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •