
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
graphene-sequelize
Advanced tools
A Sequelize integration for Graphene-JS.
For installing Graphene Sequelize, just run this command in your shell
npm install --save graphene-sequelize
# or
yarn add graphene-sequelize
Here is a simple Sequelize model:
import * as Sequelize from "sequelize";
const UserModel = sequelize.define("user", {
name: Sequelize.STRING,
lastName: Sequelize.STRING
});
To create a GraphQL schema for it you simply have to write the following:
import { ObjectType, Field, Schema } from "graphene-js";
import { SequelizeObjectType } from "graphene-sequelize";
@SequelizeObjectType({ model: UserModel })
class User {
// Fields will be populated automatically from the sequelize
// model, and we can also add extra fields here.
}
class Query {
@Field([User])
users() {
return UserModel.findAll();
}
}
schema = new Schema({ query: Query });
Then you can simply query the schema:
const query = `
query {
users {
name,
lastName
}
}
`
result = await schema.execute(query)
To learn more check out the following examples:
After developing, the full test suite can be evaluated by running:
yarn test --coverage
The documentation is generated using the excellent Sphinx and a custom theme.
The documentation dependencies are installed by running:
cd docs
pip install -r requirements.txt
Then to produce a HTML version of the documentation:
make html
FAQs
Graphene Sequelize integration
The npm package graphene-sequelize receives a total of 27 weekly downloads. As such, graphene-sequelize popularity was classified as not popular.
We found that graphene-sequelize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.