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 f33cc7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/type/definition.ts
Expand Up @@ -1631,7 +1631,6 @@ 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 +1649,7 @@ export class GraphQLInputObjectType {
defaultValue: field.defaultValue,
extensions: field.extensions,
astNode: field.astNode,
deprecationReason: field.deprecationReason,
}));

return {
Expand Down

0 comments on commit f33cc7e

Please sign in to comment.