@@ -1573,22 +1573,15 @@ function defineInputFieldMap(
15731573 config : Readonly < GraphQLInputObjectTypeConfig > ,
15741574) : GraphQLInputFieldMap {
15751575 const fieldMap = resolveObjMapThunk ( config . fields ) ;
1576- return mapValue ( fieldMap , ( fieldConfig , fieldName ) => {
1577- devAssert (
1578- ! ( 'resolve' in fieldConfig ) ,
1579- `${ config . name } .${ fieldName } field has a resolve property, but Input Types cannot define resolvers.` ,
1580- ) ;
1581-
1582- return {
1583- name : assertName ( fieldName ) ,
1584- description : fieldConfig . description ,
1585- type : fieldConfig . type ,
1586- defaultValue : fieldConfig . defaultValue ,
1587- deprecationReason : fieldConfig . deprecationReason ,
1588- extensions : toObjMap ( fieldConfig . extensions ) ,
1589- astNode : fieldConfig . astNode ,
1590- } ;
1591- } ) ;
1576+ return mapValue ( fieldMap , ( fieldConfig , fieldName ) => ( {
1577+ name : assertName ( fieldName ) ,
1578+ description : fieldConfig . description ,
1579+ type : fieldConfig . type ,
1580+ defaultValue : fieldConfig . defaultValue ,
1581+ deprecationReason : fieldConfig . deprecationReason ,
1582+ extensions : toObjMap ( fieldConfig . extensions ) ,
1583+ astNode : fieldConfig . astNode ,
1584+ } ) ) ;
15921585}
15931586
15941587export interface GraphQLInputObjectTypeConfig {
0 commit comments