graphql-sequelize-crud
v0.4.4
Published
Automatically generate queries and mutations from Sequelize models
Downloads
26
Maintainers
Readme
graphql-sequelize-crud
Automatically generate queries and mutations from Sequelize models
| Demo |
| --- |
| See demo/index.ts
for demo source code. |
| The following is automatically generated from a simple Sequelize schema. Generated using graphql-viz
. |
Installation
# Install Peer Dependencies
npm install --save graphql graphql-relay graphql-sequelize-teselagen sequelize
# Install GraphQL-Sequelize-CRUD
npm install --save graphql-sequelize-crud
Usage
See demo/index.ts
for demo source code.
Why
- :white_check_mark: Less error prone development. No more keeping GraphQL in sync with Database fields.
- :white_check_mark: Don't Repeat Yourself.
- :white_check_mark: Power of GraphQL and Relay with rapid database development of Sequelize
Features
- [x] Generated GraphQL API only from Sequelize Models defintitions
- [x] Relay compatiable GraphQL API
- [x] Generate Queries
- [x] READ single
- [x] READ all
- [x] Generate Mutations
- [x] CREATE
- [x] UPDATE
- [x] DELETE
- [x] Custom queries and mutations within Sequelize Models defitions