Skip to content
Automatically generate queries and mutations from Sequelize models
Branch: master
Clone or download
Latest commit ec8ef64 Feb 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Add build preLaunch task for VSCode launch tasks Oct 16, 2017
demo
src Add support for allowNull=true on belongsTo/hasMany relationship Feb 10, 2018
test
.gitignore
.node-version
.npmignore
.travis.yml Setup CodeClimate with Travis CI Oct 15, 2017
CHANGELOG.md Add Changelog pointing to GitHub releases Oct 16, 2017
LICENSE
README.md
graph.png
index.d.ts Fix TypeScript type definitions for graphql-sequelize Oct 15, 2017
package-lock.json
package.json 0.4.4 Feb 10, 2018
tsconfig.json Fix TypeScript type definitions for graphql-sequelize Oct 15, 2017
tslint.json Refactor into smaller classes Oct 14, 2017
yarn.lock

README.md

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

  • Less error prone development. No more keeping GraphQL in sync with Database fields.
  • Don't Repeat Yourself.
  • Power of GraphQL and Relay with rapid database development of Sequelize

Features

  • Generated GraphQL API only from Sequelize Models defintitions
    • Relay compatiable GraphQL API
  • Generate Queries
    • READ single
    • READ all
  • Generate Mutations
    • CREATE
    • UPDATE
    • DELETE
  • Custom queries and mutations within Sequelize Models defitions
You can’t perform that action at this time.