Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce Oneof Input Object specification during the validation phase #2

Open
wants to merge 1 commit into
base: oneof-directive
Choose a base branch
from

Conversation

erikkessler1
Copy link
Owner

This adds checks to the validation phase to ensure Oneof Input Objects are valid based on what is known from the operation document (i.e., before executing the query).

This checks:

  • Oneof Input Objects have exactly one field provided with the correct non-null, type for that field.
  • A variable used in a Oneof Input Object must be non-nullable.

RFC section for reference.

This ensures that Oneof Input Objects have exactly one field provided
with the correct non-null, type for that field. Additionally, a
variable used in a Oneof Input Object must be non-nullable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant