Skip to content

Commit 80afc33

Browse files
Update codegen config to prevent naming collision of enum values (#7854)
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
1 parent 1cdb7f8 commit 80afc33

File tree

3 files changed

+4196
-1439
lines changed

3 files changed

+4196
-1439
lines changed

.changeset/odd-mayflies-camp.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

codegen.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
schema: https://graphql.api.apollographql.com/api/graphql
2+
config:
3+
namingConvention:
4+
enumValues: keep
25
generates:
36
./packages/server/src/plugin/schemaReporting/generated/operations.d.ts:
47
documents: packages/server/src/plugin/schemaReporting/schemaReporter.ts

0 commit comments

Comments
 (0)