Skip to content

Commit 4a48ef0

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/type/definition.ts

Lines changed: 1 addition & 1 deletion
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)