From faca03e006a63c4a6810bdf2523b0e8d82e281e9 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Thu, 19 Jan 2023 10:59:25 +0100 Subject: [PATCH] fix(generateGraphQLHandlers): instantiate "GraphQLList" with "new" --- src/model/generateGraphQLHandlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/generateGraphQLHandlers.ts b/src/model/generateGraphQLHandlers.ts index 45fd0511..c5cccc71 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 },