File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -164,15 +164,15 @@ export function _recurseSchema(
164164 if ( sourceITC . getType ( ) === fieldType ) return ;
165165
166166 if ( fieldType instanceof GraphQLScalarType ) {
167- const newITC = schemaComposer . createInputTC ( `${ fieldName } ${ typeName } ` ) ;
167+ const newITC = schemaComposer . createInputTC ( `${ upperFirst ( fieldName ) } ${ typeName } ` ) ;
168168 if ( ( onlyIndexed && isIndexed ) || hasOperatorsConfig || ! operatorsOpts ) {
169169 newITC . addFields ( _availableOperatorsFields ( fieldName , sourceITC , operatorsConfig ) ) ;
170170 inputITC . addFields ( {
171171 [ fieldName ] : newITC ,
172172 } ) ;
173173 }
174174 } else if ( fieldType instanceof GraphQLInputObjectType ) {
175- const newITC = schemaComposer . createInputTC ( `${ fieldName } ${ typeName } ` ) ;
175+ const newITC = schemaComposer . createInputTC ( `${ upperFirst ( fieldName ) } ${ typeName } ` ) ;
176176
177177 _recurseSchema (
178178 newITC ,
@@ -190,7 +190,7 @@ export function _recurseSchema(
190190 }
191191 } else if ( fieldType instanceof GraphQLEnumType ) {
192192 const newITC = schemaComposer . createInputTC ( {
193- name : `${ fieldName } ${ typeName } ` ,
193+ name : `${ upperFirst ( fieldName ) } ${ typeName } ` ,
194194 fields : { } ,
195195 } ) ;
196196 if ( ( onlyIndexed && isIndexed ) || hasOperatorsConfig || ! operatorsOpts ) {
You can’t perform that action at this time.
0 commit comments