Setting Up GraphQL Code Generator with Gatsby

For my Gatsby site, I automatically generate GraphQL query types for TypeScript, with GraphQL Code Generator . This tool reads your Gatsby GraphQL schema, parses Gatsby's code for graphql tags, then creates TypeScript type definitions for all the…