We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0076de1 commit 42a3f00Copy full SHA for 42a3f00
lib/schema-builder/factories/enum-definition.factory.ts
@@ -24,12 +24,12 @@ export class EnumDefinitionFactory {
24
values: Object.keys(enumValues).reduce((prevValue, key) => {
25
const valueMap = metadata.valuesMap[key];
26
27
- let graphqlKey = key;
+ let enumKey = key;
28
if (metadata.mapToUppercase) {
29
- graphqlKey = mapToUppercase(key);
+ enumKey = mapToUppercase(key);
30
}
31
32
- prevValue[graphqlKey] = {
+ prevValue[enumKey] = {
33
value: enumValues[key],
34
description: valueMap?.description,
35
deprecationReason: valueMap?.deprecationReason,
0 commit comments