graphql-sequelize-crud
TypeScript icon, indicating that this package has built-in type declarations

0.4.4 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i graphql-sequelize-crud

Weekly Downloads

1

Version

0.4.4

License

MIT

Unpacked Size

80.6 kB

Total Files

21

Last publish

Collaborators

  • glavin001