We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2663552 commit 1abb543Copy full SHA for 1abb543
packages/core/src/api/config/graphql-custom-fields.ts
@@ -758,7 +758,7 @@ function getDeprecationDirective(field: CustomFieldConfig): string {
758
759
if (typeof field.deprecated === 'string') {
760
// Escape quotes in the deprecation reason
761
- const escapedReason = field.deprecated.replace(/"/g, '\\"');
+ const escapedReason = (field.deprecated as string).replace(/"/g, '\\"');
762
return `@deprecated(reason: "${escapedReason}")`;
763
}
764
0 commit comments