After reading the schema file of nexus, it creates a graphql file.
yarn add -D schema-to-graphql
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"]
}
}
npx stg [--config stg.json]