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.
What can I do with GSG?
The tools provided by this library will allow you to:
Query any models and associated ones 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/subscriptions on auto-generated types.
Easily add fully custom endpoints
Getting started
Add the lib and the peer dependencies:
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.
Last updated
Was this helpful?