Open flymedllva opened 1 week ago
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.
Hi @flymedllva,
This is a known issue with a ticket in our backlog. We'll address it in due course.
Thanks,
The WunderGraph Team
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!