From 4a48ef059f04fce76d273afc58b7b9d952a58259 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Tue, 31 May 2022 15:31:43 +0300 Subject: [PATCH] fix GraphQLWrappingType GraphQLNonNull wrapper can only be applies to nullable types related: #3597 see also: https://github.com/graphql/graphql-js/pull/3617#discussion_r885544662 --- src/type/definition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/type/definition.ts b/src/type/definition.ts index 9eea02e8eaf..c31343051a9 100644 --- a/src/type/definition.ts +++ b/src/type/definition.ts @@ -395,7 +395,7 @@ export class GraphQLNonNull { export type GraphQLWrappingType = | GraphQLList - | GraphQLNonNull; + | GraphQLNonNull; export function isWrappingType(type: unknown): type is GraphQLWrappingType { return isListType(type) || isNonNullType(type);