Skip to content

[v2] GraphQLOperation.Variable Cleanup #699

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

Open
wants to merge 1 commit into
base: v2-test-deprecation-cleanup
Choose a base branch
from

Conversation

AnthonyMDev
Copy link
Contributor

This removes the conformance of Optional to GraphQLOperationVariableValue`.

Any optional operation variables should actually be using GraphQLNullable to denote the difference between explictly null and absent values. This prevents us or users from accidentally using Optional where we shouldn’t be here.

Also adds back commented out tests for encoding of variable values.

This removes the conformance of `Optional` to GraphQLOperationVariableValue`.

Any optional operation variables should actually be using `GraphQLNullable` to denote the difference between explictly null and absent values. This prevents us or users from accidentally using `Optional` where we shouldn’t be here.

Also adds back commented out tests for encoding of variable values.
@apollo-librarian
Copy link

apollo-librarian bot commented Jul 3, 2025

⚠️ Docs preview not attached to branch

The preview was not built because the PR's base branch v2-test-deprecation-cleanup is not in the list of sources.

An Apollo team member can comment one of the following commands to dictate which branch to attach the preview to:

  • !docs set-base-branch main

Build ID: f920f5333d4dd8f5ef1b7902

@calvincestari
Copy link
Member

Same issue with tests as #698 it looks like.

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.

2 participants