Required input field X cannot be deprecated
does not work when composition
#892
Labels
confirmed bug
The issue was replicated/determined to be a bug.
internally-reviewed
The issue has been reviewed internally.
Component(s)
composition
Component version
0.89.1
wgc version
0.53.2
controlplane version
router version
0.89.1
What happened?
Description
If you put the
@deprecated
directive on a mandatory field, cosmo builds the schema even though it shouldn't before the field is made optional (for schema compatibility)apollo – GraphQLError: Required input field TestInput.testField cannot be deprecated.
graphql-schema-linter – Required input field TestInput.testField cannot be deprecated. (invalid-graphql-schema)
cosmo – OK, composite schema!
Steps to Reproduce
Initial scheme
Set the directive and expect an error during composition
Cosmo doesn't cotton on to composition errors
Environment information
OS: 14.4 (23E214)
Package Manager: npm
Compiler(if manually compiled): go version go1.22.1 darwin/arm64
Router configuration
Router execution config
-
Log output
apollo:
graphql-schema-linter:
Required input field TestInput.testField cannot be deprecated. (invalid-graphql-schema)
cosmo:
OK, composite schema!
The text was updated successfully, but these errors were encountered: