From a29438429b151726a2746e4e643e1e57fca80325 Mon Sep 17 00:00:00 2001 From: Thomas Blommaert <66438062+thomas-advantitge@users.noreply.github.com> Date: Tue, 10 Aug 2021 14:40:07 +0200 Subject: [PATCH] fix: Correct input types for non-nullable arrays (#900) --- .../src/services/graphql/graphql-type-informer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework-core/src/services/graphql/graphql-type-informer.ts b/packages/framework-core/src/services/graphql/graphql-type-informer.ts index dc6039db8..2beade27d 100644 --- a/packages/framework-core/src/services/graphql/graphql-type-informer.ts +++ b/packages/framework-core/src/services/graphql/graphql-type-informer.ts @@ -114,7 +114,7 @@ export class GraphQLTypeInformer { return new GraphQLList(this.toInputType(graphQLType.ofType)) } if (graphQLType instanceof GraphQLNonNull) { - return new GraphQLNonNull(graphQLType.ofType) + return new GraphQLNonNull(this.toInputType(graphQLType.ofType)) } if (graphQLType instanceof GraphQLObjectType) { return new GraphQLInputObjectType({