Skip to content

Commit a5213b4

Browse files
committed
fix GraphQLWrappingType
GraphQLNonNull wrapper can only be applies to nullable types related: graphql#3597 see also: graphql#3617 (comment)
1 parent 338e3dd commit a5213b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type/definition.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export class GraphQLNonNull<T extends GraphQLNullableType> {
395395

396396
export type GraphQLWrappingType =
397397
| GraphQLList<GraphQLType>
398-
| GraphQLNonNull<GraphQLType>;
398+
| GraphQLNonNull<GraphQLNullableType>;
399399

400400
export function isWrappingType(type: unknown): type is GraphQLWrappingType {
401401
return isListType(type) || isNonNullType(type);

0 commit comments

Comments
 (0)