graphql-sequelize-crud

by Glavin001

Automatically generate queries and mutations from Sequelize models

128 Stars 24 Forks Last release: almost 3 years ago (v0.4.3) MIT License 71 Commits 7 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

graphql-sequelize-crud

Automatically generate queries and mutations from Sequelize models

Build Status Maintainability Test Coverage

NPM


| Demo | | --- | | See

demo/index.ts
for demo source code. | | The following is automatically generated from a simple Sequelize schema. graph 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

  • :whitecheckmark: Less error prone development. No more keeping GraphQL in sync with Database fields.
  • :whitecheckmark: Don't Repeat Yourself.
  • :whitecheckmark: 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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.