Skip to content

pruge/schema-to-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

convert nexus sdl to graphql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published