Skip to content

Conversation

yaacovCR
Copy link
Contributor

= If a type is a non-null type, then the wrapped type must be nullable.

= Introduces GraphQLNullableInputType and GraphQLNullableOutputType to properly represent the result when isNonNullType is called on parameters of type GraphQLInputType or GraphQLOutputType.

= If a type is a non-null type, then the wrapped type must be nullable.

= Introduces `GraphQLNullableInputType` and `GraphQLNullableOutputType` to properly represent the result when `isNonNullType` is called on parameters of type `GraphQLInputType` or `GraphQLOutputType`.
@netlify
Copy link

netlify bot commented May 19, 2022

👷 Deploy request for compassionate-pike-271cb3 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit cf6430e

@yaacovCR yaacovCR requested a review from a team May 19, 2022 17:43
@github-actions
Copy link

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@yaacovCR yaacovCR changed the title Fix typing for isNonNullType Improve typing for isNonNullType May 19, 2022
@yaacovCR yaacovCR added PR: bug fix 🐞 requires increase of "patch" version number and removed enhancement labels May 19, 2022
@yaacovCR yaacovCR changed the title Improve typing for isNonNullType Fix typing for isNonNullType May 19, 2022
@yaacovCR
Copy link
Contributor Author

My guess is that this qualifies as a "bug fix" and can go into a patch release.

yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request May 19, 2022
Motivation:
1.  Makes it easier to understand the type hierarchy.
2. Adding a new type, were it ever to happen, would require fewer code changes.

Depends on graphql#3597
@IvanGoncharov
Copy link
Member

IvanGoncharov commented May 19, 2022

My guess is that this qualifies as a "bug fix" and can go into a patch release.

Yes, but the patch releases don't make sense in alpha :)

Copy link
Member

@IvanGoncharov IvanGoncharov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is that this qualifies as a "bug fix" and can go into a patch release.

@yaacovCR yaacovCR added PR: feature 🚀 requires increase of "minor" version number and removed PR: bug fix 🐞 requires increase of "patch" version number labels May 19, 2022
@yaacovCR yaacovCR merged commit c526767 into graphql:main May 19, 2022
@yaacovCR yaacovCR deleted the dry branch May 19, 2022 20:13
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request May 19, 2022
Motivation:
1.  Makes it easier to understand the type hierarchy.
2. Adding a new type, were it ever to happen, would require fewer code changes.

Depends on graphql#3597
yaacovCR added a commit that referenced this pull request May 19, 2022
Motivation:
1.  Makes it easier to understand the type hierarchy.
2. Adding a new type, were it ever to happen, would require fewer code changes.

Depends on #3597
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request May 31, 2022
GraphQLNonNull wrapper can only be applies to nullable types

related: graphql#3597
see also: graphql#3617 (comment)
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Jun 1, 2022
GraphQLNonNull wrapper can only be applies to nullable types

related: graphql#3597
see also: graphql#3617 (comment)
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Jun 1, 2022
`GraphQLNonNull<GraphQLNullableType>`

This is related to graphql#3597, in the sense that graphql#3597 made the
`GraphQLNonNull<GraphQL*Type>` => `GraphQLNonNull<GraphQLNullable*Type>`
change in other code points related to the `isNonNullType` function, but
not within `GraphQLWrappingType` or assertNonNullType.

This PR was prompted by the uncovering of a bug by a different PR, see:
graphql#3617 (comment)
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Jun 2, 2022
`GraphQLNonNull<GraphQLNullableType>`

This is related to graphql#3597, in the sense that graphql#3597 made the
`GraphQLNonNull<GraphQL*Type>` => `GraphQLNonNull<GraphQLNullable*Type>`
change in other code points related to the `isNonNullType` function, but
not within `GraphQLWrappingType` or assertNonNullType.

This PR was prompted by the uncovering of a bug by a different PR, see:
graphql#3617 (comment)
IvanGoncharov pushed a commit that referenced this pull request Jun 6, 2022
)

`GraphQLNonNull<GraphQLNullableType>`

This is related to #3597, in the sense that #3597 made the
`GraphQLNonNull<GraphQL*Type>` => `GraphQLNonNull<GraphQLNullable*Type>`
change in other code points related to the `isNonNullType` function, but
not within `GraphQLWrappingType` or assertNonNullType.

This PR was prompted by the uncovering of a bug by a different PR, see:
#3617 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature 🚀 requires increase of "minor" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants