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

0.1.1 • Public • Published

schema-to-graphql

After reading the schema file of nexus, it creates a graphql file.

install

yarn add -D schema-to-graphql

usage

Create a stg.json file in root. schema: generated nexus schema file dest: destination folder for graphql

{
  "overwrite": false,
  "schema": "./test/schema.graphql",
  "dest": "./test/gql",
  "alias": {
    "Post": ["Draft"]
  }
}

command

npx stg [--config stg.json]

Package Sidebar

Install

npm i schema-to-graphql

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

28.9 kB

Total Files

20

Last publish

Collaborators

  • cljames