Skip to content

Fix client schema deprecated input values#1945

Open
simPod wants to merge 2 commits into
webonyx:masterfrom
simPod:fix/client-schema-deprecated-input-values
Open

Fix client schema deprecated input values#1945
simPod wants to merge 2 commits into
webonyx:masterfrom
simPod:fix/client-schema-deprecated-input-values

Conversation

@simPod

@simPod simPod commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Preserve deprecationReason when rebuilding input values from introspection in BuildClientSchema.

This keeps deprecated field arguments and input object fields available when a client schema is printed back to SDL.

@simPod simPod requested a review from Copilot July 9, 2026 09:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Preserves deprecationReason for input values (field arguments and input object fields) when rebuilding a client schema from introspection via BuildClientSchema, so that deprecated input values remain deprecated when the client schema is printed back to SDL.

Changes:

  • Include deprecationReason when constructing input value configs in BuildClientSchema::buildInputValue().
  • Extend the deprecation round-trip test to cover deprecated input object fields and deprecated field arguments.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Utils/BuildClientSchema.php Ensures deprecationReason from introspection is preserved for input values built into the client schema.
tests/Utils/BuildClientSchemaTest.php Adds coverage for deprecated input fields and deprecated arguments in the introspection → client schema → introspection cycle.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@simPod simPod requested a review from spawnia July 9, 2026 09:52
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