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.
### Describe the bug Resolvers input subfields with defaults resolve into nullable ### Your Example Website or App https://stackblitz.com/edit/node-ve8vhp?file=schema.graphql ### Steps to Reproduce the Bug or Issue ``` typescript-resolvers: overwrite:...
**Describe the bug** Using the `flattenGeneratedTypes` option (required to workaround https://github.com/dotansimha/graphql-code-generator/issues/4212) causes GraphQL to fail to locate fragments when using `near-operation-file-preset` and the fragments are located in other files (regardless...
**Is your feature request related to a problem? Please describe.** The current implementation of `getSdk` exports queries, mutations, and subscriptions as a single object. ```ts const defaultWrapper = sdkFunction =>...
`graphql-codegen` is currently owned by Apollo (deprecated package and project) We are in the process of potentially transferring ownership.
**Is your feature request related to a problem? Please describe.** Currently scalar field on input types use the same types as scalars on normal types. It would be really useful...
### Describe the bug The generated `useQuery` hooks only specify one of the two generics. The second one, which is currently missing, defines the argument type for the query and...
### Describe the bug The graphql codegen generate duplicate identifier. cf the codesandbox ``` export type NavigationItemsQueryVariables = Exact; export type NavigationItemsQuery = { __typename?: 'Query', homePage?: { __typename?: 'HomePage',...
**Is your feature request related to a problem? Please describe.** I need to access the useQuery options from a custom fetcher (ex: options.meta). This will allow query-specific headers to be...
**Is your feature request related to a problem? Please describe.** The react-query key is automatically generated from the query name, but there are situations where you might want to change...
**Is your feature request related to a problem? Please describe.** I'm frustrated of the idea of choosing between code generated with components, and make them myself and get the suspense...