sql-type-graphql
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

A simple command line tool to generate Graphql schema from SQL database schemas.

A simple command line tool to generate Graphql Type-Graphql .ts files and Types, Query and Mutations from SQL database schemas.

Supports the following databases: MySQL, Microsoft SQL Server, SQLite and PostgreSQL.

How to use

npx sql-type-graphql -c ./config.json

It will create a folder and generate a file for each table based on DB schema.

It respects nullable and required fields.

Config file options

sql-ts docs OR Docs

Credits:

Package Sidebar

Install

npm i sql-type-graphql

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

139 kB

Total Files

26

Last publish

Collaborators

  • saostad