Skip to content

Commit

Permalink
fix(generateGraphQLHandlers): instantiate "GraphQLList" with "new" (#259
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kettanaito committed Jan 19, 2023
1 parent efb1747 commit fab204d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/generateGraphQLHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function createComparatorGraphQLInputType(
name,
fields: Object.keys(comparators).reduce<GraphQLInputFieldConfigMap>(
(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
},
Expand Down

0 comments on commit fab204d

Please sign in to comment.