Automatically generate GraphQL queries, mutations and subscriptions from GraphQL endpoint
# pnpm
pnpm add @cassiomaciell/gql-generator -g
# pnpm
npm i @cassiomaciell/gql-generator -G
# yarn
yarn global add @cassiomaciell/gql-generator
gql-generator init # Initialize config file
gql-generator generate # Generate GQL files
gql-generator.json
{
"graphql_api_url": "http://localhost:4000/graphql",
"outputFolder": "generated",
"clearOutputFolder": false,
"depthLimit": 3,
"generateMutations": true,
"generateQueries": true,
"generateSubscriptions": true
}
Licensed under the MIT License
See LICENSE for more information.