graphql-code-generator icon indicating copy to clipboard operation
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.

Results 477 graphql-code-generator issues
Sort by recently updated
recently updated
newest added

In case I have a big project with a lot of definitions in different folders I'd like to have a config file (codegen.yaml) for each of these folders. Now we...

kind/enhancement

**Is your feature request related to a problem? Please describe.** No indication is given that a file is generated inside the file itself with default settings. I think that this...

core
kind/enhancement

here is repro: https://github.com/melounek/repro-codegen after last release the watch-mode works better, but when a graphql-type is exported and used in different files, it will fail on change with: `Unable to...

core

**Describe the bug** Generating an empty possible types file ```js export interface PossibleTypesResultData { possibleTypes: { [key: string]: string[] } } const result: PossibleTypesResultData = { "possibleTypes": {} }; export...

Last time I sent a PR, I only did the feature and while it did get merged, it's difficult for someone to discover & use this. This issue is a...

### Describe the bug I'm wondering how no one's noticed this before, but the subscription functions generated using `createSmartSubscriptionOptionsFunction` return incomplete or even invalid types. The main issues are: 1....

**Is your feature request related to a problem? Please describe.** Currently, [TypeScript Vue Apollo Smart Operations ](https://www.graphql-code-generator.com/plugins/typescript-vue-apollo-smart-ops) imports [vue-apollo-smart-ops](https://www.npmjs.com/package/vue-apollo-smart-ops) upon file generation The issue is [vue-apollo-smart-ops](https://www.npmjs.com/package/vue-apollo-smart-ops)'s dependency is using [vue-apollo...

### Describe the bug For a schema: ``` type Query { test( a: Int # can be null b: Int = 1 # can be null if user pass null...

### Describe the bug For schema: ``` type Query { test( a: Int # can be null b: Int = 1 # can be null if user pass null explicitly...

### Describe the bug For schema: ``` type Query { test( a: Int # can be null b: Int = 1 # can be null if user pass null explicitly...