Is there a way that I can tell the codegen to omit the __typename from the typescript definitions that it generates from my GraphQL schema? It is not something that is useful and would prefer to not have it in the type definition as a requirement. I am hoping there is something I can put in the .graphqlconfig.yml file to do this.
#omit __typename from AppSync Typescript Codegen?
3 messages · Page 1 of 1 (latest)
projects: Codegen Project: schemaPath: schema.json includes: - src/graphql/**/*.ts excludes: - ./amplify/** extensions: amplify: codeGenTarget: typescript generatedFileName: src/internal_types.ts docsFilePath: src/graphql region: us-east-1 apiId: xxxxxxxxxxxxxxx frontend: javascript framework: react maxDepth: 2 extensions: amplify: version: 3
This is my current yml file with the APP ID omitted