diff --git a/src/model/generateGraphQLHandlers.ts b/src/model/generateGraphQLHandlers.ts index 45fd051..c5cccc7 100644 --- a/src/model/generateGraphQLHandlers.ts +++ b/src/model/generateGraphQLHandlers.ts @@ -57,7 +57,7 @@ function createComparatorGraphQLInputType( name, fields: Object.keys(comparators).reduce( (fields, comparatorFn) => { - const fieldType = ['between', 'notBetween', 'in', 'notIn'].includes(comparatorFn) ? GraphQLList(type) : type + const fieldType = ['between', 'notBetween', 'in', 'notIn'].includes(comparatorFn) ? new GraphQLList(type) : type fields[comparatorFn] = { type: fieldType } return fields },