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 cd32a26 commit 4b12100Copy full SHA for 4b12100
src/fieldsConverter.ts
@@ -395,7 +395,7 @@ export function enumToGraphQL(
395
} else if (value === '') {
396
key = 'EMPTY_STRING';
397
} else {
398
- key = value.replace(/[^_a-zA-Z0-9]/g, '_').replace(/(^[0-9])(.*)/g, 'a_$1$2');
+ key = value?.replace(/[^_a-zA-Z0-9]/g, '_')?.replace(/(^[0-9])(.*)/g, 'a_$1$2');
399
}
400
result[key] = { value };
401
return result;
0 commit comments