1.0.1 • Published 5 years ago

@tapgiants/crud v1.0.1

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

What is @tapgiants/crud

@tapgiants/crud is build on the top of Tap Giants Form. It provides GraphQL CRUD operations.

The usage of this package requires keeping of the GraphQL conventions described in the GraphQL conventions section.

Installation

Install peer dependencies:

yarn add @tapgiants/form @tapgiants/graphql apollo-boost graphql react-apollo recompose

Install @tapgiants/crud

yarn add @tapgiants/crud

GQLForm API

Description...

Props

Props...

GQLForm example

List API

Description...

Props

Props...

List example

Pagination API

Description...

Props

Props...

Pagination example

withDeleteHandler API

Description...

Props

Props...

withDeleteHandler example

withFilterForm API

Description...

Props

Props...

withFilterForm example

Params API

Description...

withFilter

Description...

withPagingParams

Description...

withListParams

Description...

withId

Description...

Params example

GraphQL conventions

Add link to an external repo that describes all the conventions.

Development

Link the package from your target project and run yarn start. This will start the webpacker watcher.

Once you are satisfied with your changes, use yarn publish to push the new version to npmjs.org.