simple-graphql

The simple way to generates GraphQL schemas and Sequelize models from your models definition.


Keywords
GraphQL, ORM, Sequelize, MySQL, PostgreSQL, SQLite, MSSQL, JSON Typedef, nodejs
License
MIT
Install
npm install simple-graphql@5.2.5

Documentation

Simple-GraphQL

核心功能:

  • 避免重复代码, 基于统一的实体定义 (类似 JSON Typedef 的扩展) 生成 GraphQL Schema 和 Sequelize Model

  • 可扩展的字段类型配置

    • (内置) 类型 String Number Integer Date JSON Boolean
  • 可扩展的插件配置, 用于动态修改相关配置

    • (内置) 生成可配置的GraphQL接口, 如 GraphQL CRUD 接口
  • 可扩展的拦截器配置, 用于在运行时对GraphQL接口调用的拦截.

    • GraphQL Mutation接口的 transaction 支持
    • 用户权限验证功能
  • 可扩展的单实例服务接口支持.

安装

 npm install simple-graphql graphql graphql-relay -save

用法

TODO

License

MIT