@@ -100,7 +100,7 @@ function getObjectFields (context, schema, typeName, buildingInputType) {
100
100
const type = mapType ( context , attributeDefinition , qualifiedAttributeName , buildingInputType ) ;
101
101
102
102
const modifiedType = includes ( schema . required , attributeName ) ? GraphQLNonNull ( type ) : type ;
103
- return { type : modifiedType } ;
103
+ return { type : modifiedType , description : attributeDefinition . description } ;
104
104
} ) ,
105
105
{ type : DROP_ATTRIBUTE_MARKER }
106
106
) ;
@@ -124,11 +124,13 @@ function mapType (context, attributeDefinition, attributeName, buildingInputType
124
124
return buildingInputType
125
125
? new GraphQLInputObjectType ( {
126
126
name,
127
- fields : ( ) => getObjectFields ( context , attributeDefinition , attributeName , buildingInputType )
127
+ fields : ( ) => getObjectFields ( context , attributeDefinition , attributeName , buildingInputType ) ,
128
+ description : attributeDefinition . description
128
129
} )
129
130
: new GraphQLObjectType ( {
130
131
name,
131
- fields : ( ) => getObjectFields ( context , attributeDefinition , attributeName , buildingInputType )
132
+ fields : ( ) => getObjectFields ( context , attributeDefinition , attributeName , buildingInputType ) ,
133
+ description : attributeDefinition . description
132
134
} ) ;
133
135
// return objectFromSchema(context, attributeDefinition, attributeName, buildingInputType);
134
136
}
0 commit comments