0.1.1 • Published 4 years ago
schema-to-graphql v0.1.1
schema-to-graphql
After reading the schema file of nexus, it creates a graphql file.
install
yarn add -D schema-to-graphqlusage
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]