Skip to content

Commit

Permalink
Update codegen config to prevent naming collision of enum values (#7854)
Browse files Browse the repository at this point in the history
In particular, the `LoginFlowSource` being generated resulted in a
TypeScript error due to the way the enum values are transformed. This
change prevents the two enum values from yielding a naming collision.


https://the-guild.dev/graphql/codegen/docs/config-reference/naming-convention#keep-names-as-is
  • Loading branch information
trevor-scheer committed Mar 22, 2024
1 parent 1cdb7f8 commit 80afc33
Show file tree
Hide file tree
Showing 3 changed files with 4,196 additions and 1,439 deletions.
2 changes: 2 additions & 0 deletions .changeset/odd-mayflies-camp.md
@@ -0,0 +1,2 @@
---
---
3 changes: 3 additions & 0 deletions codegen.yml
@@ -1,4 +1,7 @@
schema: https://graphql.api.apollographql.com/api/graphql
config:
namingConvention:
enumValues: keep
generates:
./packages/server/src/plugin/schemaReporting/generated/operations.d.ts:
documents: packages/server/src/plugin/schemaReporting/schemaReporter.ts
Expand Down

0 comments on commit 80afc33

Please sign in to comment.