
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
graphql-sequelize-generator
Advanced tools
A set of tools to easily generate a Graphql API from sequelize models.
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.
The tools provided by this library will allow you to:
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'
})
Get started with the online documentation
FAQs
A set of tools to easily generate a Graphql API from sequelize models.
The npm package graphql-sequelize-generator receives a total of 71 weekly downloads. As such, graphql-sequelize-generator popularity was classified as not popular.
We found that graphql-sequelize-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.