All Projects → teamstarter → graphql-sequelize-generator

teamstarter / graphql-sequelize-generator

Licence: other
A Graphql API generator based on Sequelize.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to graphql-sequelize-generator

uniform-graphql
Code-first GraphQL apis in TypeScript with complete & robust end-to-end type safety.
Stars: ✭ 44 (+120%)
Mutual labels:  resolvers, graphql-api
react-apollo-form
Build React forms based on GraphQL APIs.
Stars: ✭ 195 (+875%)
Mutual labels:  mutations, graphql-api
graphql-datasource
Grafana datasource plugin to query data from a GraphQL API
Stars: ✭ 55 (+175%)
Mutual labels:  graphql-api
ServiceNow-GraphQL-Example
Simple example how to use GraphQL in the latest ServiceNow Release: Paris
Stars: ✭ 18 (-10%)
Mutual labels:  graphql-api
Computational-Intelligence-Tutorials
This is the repository of codes written in class.
Stars: ✭ 36 (+80%)
Mutual labels:  mutations
node-url-shortener
URL Shortener in Base58 using Node.js, Express, Sequelize, Mocha and Bootstrap
Stars: ✭ 21 (+5%)
Mutual labels:  sequelize
pg-search-sequelize
Postgres full-text search in Node.js and Sequelize.
Stars: ✭ 31 (+55%)
Mutual labels:  sequelize
sequelize-mig
Sequelize migration generator and es6 init tool (Planned)
Stars: ✭ 54 (+170%)
Mutual labels:  sequelize
nodejs-integration-testing
Integration testing of a Node.js / Express.js / Sequelize app
Stars: ✭ 23 (+15%)
Mutual labels:  sequelize
shyft
⬡ Shyft is a server-side framework for building powerful GraphQL APIs 🚀
Stars: ✭ 56 (+180%)
Mutual labels:  mutations
node-crudapi-ts
CRUD boilerplate for create Node Restful API's with Express Framework and Sequelize ORM written in Typescript.
Stars: ✭ 41 (+105%)
Mutual labels:  sequelize
doc
Sequelize Documentation
Stars: ✭ 32 (+60%)
Mutual labels:  sequelize
chanyeong
👨‍💻 chanyeong's portfolio and blog webpage
Stars: ✭ 39 (+95%)
Mutual labels:  sequelize
express-crud-router
Simply expose resource CRUD (Create Read Update Delete) routes for Express & Sequelize. Compatible with React Admin Simple Rest Data Provider
Stars: ✭ 109 (+445%)
Mutual labels:  sequelize
wildebeest
Database migration for Sequelize.
Stars: ✭ 13 (-35%)
Mutual labels:  sequelize
Express-REST-API-Generator
Express REST API Generator is an Express Based API skeleton. A template for starting projects with express as an API. This project can be used for creating a RESTful API using Node JS, Express as the framework, Mongoose to interact with a MongoDB instance and Sequelize for support of SQL compatible databases. Mocha is also used for running unit …
Stars: ✭ 100 (+400%)
Mutual labels:  sequelize
libstack
NodeJS modules to boost productivity
Stars: ✭ 24 (+20%)
Mutual labels:  sequelize
template-server-nodejs
No description or website provided.
Stars: ✭ 20 (+0%)
Mutual labels:  sequelize
z
基于 MidwayJS(EggJS) + TypeScript 的多模块应用 [ NodeJS 版 ]
Stars: ✭ 122 (+510%)
Mutual labels:  sequelize
magento
Free PWA & SPA for Magento
Stars: ✭ 34 (+70%)
Mutual labels:  graphql-api

Graphql-Sequelize-Generator

Graphql-Sequelize-Generator (GSG) is a set of tools that will allow you to easily generate a GraphQL API from your sequelize models.

It's a very good fit for POCs and MVPs, while also scaling pretty well thanks to dataloader-sequelize.

Manual

Get started with the online documentation

What can I do with GSG?

The tools provided by this library will allow you to:

  • Query any model defined in your app through GraphQL.
  • Auto-generate create/update/delete mutations.
  • Define before/after hooks and all resolvers, including the mutations.
  • Easily create custom mutations.
  • Get an integrated interface to test your GraphQL API.
  • Counts for each model can also be generated.
  • Subscriptions auto-generated for mutations.
  • Add custom fields/resolvers on auto-generated types.
  • Easy integration with dataloader-sequelize

Getting started

Add the lib and the peer dependencies:

$ yarn add graphql-sequelize-generator graphql sequelize graphql-sequelize

⚠️ Caution: GSG requires at least Node v9.11.2 or greater as it is using async/await.

Then you will be ready to add a GraphQL API to your express server with only a few lines of code:

import express from 'express'
const {
  generateModelTypes,
  generateGraphqlExpressMiddleware
} = require('graphql-sequelize-generator')
import models from './models'

const types = generateModelTypes(models)

graphqlSchemaDeclaration.user = {
  model: models.user,
  actions: ['list', 'create']
}

const server = generateApolloServer({
  graphqlSchemaDeclaration,
  types,
  models
})

const app = express()
server.applyMiddleware({
  app,
  path: '/graphql'
})

Getting started with boilerplates

You can easily start a project with graphql-sequelize-generator using these boilerplates:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].