graphql-code-generator
graphql-code-generator copied to clipboard
A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
**Is your feature request related to a problem? Please describe.** We're looking at migrating from Apollo CLI for codegen. With Apollo, generated files are named after the operation defined in...
somewhere in `listr2` renderer we need to see how we can improve how these tasks look.
### Describe the bug There seems to be an issue with the c-sharp-operations plug-in when trying to generate code for a query which returns an interface. Using the live demo...
**Is your feature request related to a problem? Please describe.** currently to invalidate certain query on a mutation, i manually check what query key is for targeted queries. Since key...
### Describe the bug When attempting to run the code generator with a schema variable that is a URL it fail with the following error: `Failed to load schema from...
` config: { fetcher: { endpoint: '/api' ), }, }, ` This removes the possibility to set fetchParams when using the generated code.
### Describe the bug When using typescript-type-graphql, the optional fields from an input are not optional ### Your Example Website or App https://codesandbox.io/s/sparkling-hooks-sf2bed?file=/types.ts ### Steps to Reproduce the Bug or...
While adding CI for different versions https://github.com/dotansimha/graphql-code-generator/pull/8013 the CI on node 18 was failing. After investigating as we run more tests the memory usage just keeps going up ``` yarn...
### Describe the bug If a comment provided for the `Mutation` type, the CLI copies that comment to the argument type for each mutation. For example, [EntityGraphQL](https://entitygraphql.github.io/) generates a GraphQL...
### Issue workflow progress _Progress of the issue based on the [Contributor Workflow](https://github.com/the-guild-org/Stack/blob/master/CONTRIBUTING.md#a-typical-contributor-workflow)_ - [x] 1. The issue provides a reproduction available on [GitHub](https://github.com/dotansimha/graphql-code-generator-issue-sandbox-template), [Stackblitz](https://stackblitz.com/github/dotansimha/graphql-code-generator-issue-sandbox-template) or [CodeSandbox](https://codesandbox.io/s/github/dotansimha/graphql-code-generator-issue-sandbox-template) > Make sure...