Skip to content

Conversation

@lpessoa
Copy link

@lpessoa lpessoa commented Oct 29, 2025

Adding support to deprecated directive on InputValue as defined in https://spec.graphql.org/September2025/#sec--deprecated.

This will also help us to solve a bug on http://github.com/apollographql/rover where the rover graph introspection does not correctly fetch the @deprecated directives from the introspected schema.

This  will support deprecated directive on  InputValue as defined in https://spec.graphql.org/September2025/#sec--deprecated
Copy link
Member

@tomhoule tomhoule left a comment

Choose a reason for hiding this comment

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

Nice, thanks for the PR!

Copy link
Member

@tomhoule tomhoule left a comment

Choose a reason for hiding this comment

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

Ah, both fields need a #[serde(default)] attribute, otherwise they will be expected, and it won't work with older introspection responses.

New fields should have default serde values in order to keep backward compatibility.
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