Skip to content

Commit 0e7a273

Browse files
committed
refactor: typename must be in CamelCase
1 parent 69a8642 commit 0e7a273

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/resolvers/helpers/filterOperators.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)