Skip to content

Commit

Permalink
Include deprecationReason when capturing fields in toConfig()
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Sep 3, 2021
1 parent 138188b commit ee1460a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/type/definition.ts
Expand Up @@ -1631,7 +1631,7 @@ export class GraphQLInputObjectType {
this.extensions = config.extensions && toObjMap(config.extensions);
this.astNode = config.astNode;
this.extensionASTNodes = config.extensionASTNodes ?? [];

this._fields = defineInputFieldMap.bind(undefined, config);
devAssert(typeof config.name === 'string', 'Must provide name.');
}
Expand All @@ -1650,6 +1650,7 @@ export class GraphQLInputObjectType {
defaultValue: field.defaultValue,
extensions: field.extensions,
astNode: field.astNode,
deprecationReason: field.deprecationReason,
}));

return {
Expand Down

0 comments on commit ee1460a

Please sign in to comment.