graphql-code-generator Codesabdbox template

You can use this repo in order to quickly create a template for reproducing issues related to graphql-code-generator.

Use the following link: https://codesandbox.io/s/github/dotansimha/graphql-code-generator-issue-sandbox-template

  • document.graphql - your GraphQL operations - queries, mutations, subscritpions and fragments.
  • schema.graphql - your GraphQL schema.
  • codegen.yml - Codegen configuration

Create a fork from this template, and then in your sandbox terminal, use yarn generate to generate the types.