Skip to content

Commit ee1460a

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/type/definition.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ export class GraphQLInputObjectType {
16311631
this.extensions = config.extensions && toObjMap(config.extensions);
16321632
this.astNode = config.astNode;
16331633
this.extensionASTNodes = config.extensionASTNodes ?? [];
1634-
1634+
16351635
this._fields = defineInputFieldMap.bind(undefined, config);
16361636
devAssert(typeof config.name === 'string', 'Must provide name.');
16371637
}
@@ -1650,6 +1650,7 @@ export class GraphQLInputObjectType {
16501650
defaultValue: field.defaultValue,
16511651
extensions: field.extensions,
16521652
astNode: field.astNode,
1653+
deprecationReason: field.deprecationReason,
16531654
}));
16541655

16551656
return {

0 commit comments

Comments
 (0)