Skip to content

Commit f33cc7e

Browse files
committed
Include deprecationReason when capturing fields in toConfig()
1 parent 138188b commit f33cc7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type/definition.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,6 @@ export class GraphQLInputObjectType {
16311631
this.extensions = config.extensions && toObjMap(config.extensions);
16321632
this.astNode = config.astNode;
16331633
this.extensionASTNodes = config.extensionASTNodes ?? [];
1634-
16351634
this._fields = defineInputFieldMap.bind(undefined, config);
16361635
devAssert(typeof config.name === 'string', 'Must provide name.');
16371636
}
@@ -1650,6 +1649,7 @@ export class GraphQLInputObjectType {
16501649
defaultValue: field.defaultValue,
16511650
extensions: field.extensions,
16521651
astNode: field.astNode,
1652+
deprecationReason: field.deprecationReason,
16531653
}));
16541654

16551655
return {

0 commit comments

Comments
 (0)