Open willgittoes opened 23 hours ago
Bonus bug/feature request:
RemoveUnreachableTypes
removes directives that are referenced in composeDirective
unless they're also used somewhere else, leading to a schema error when you try to compose the schema in Apollo. RemoveUnreachableTypes
should consider being referenced in composeDirective
as being reachable.
Double-bonus bug/feature request:
DirectiveTypeInterceptor
also discards directives in the same way, marking them as being unused.
We have dropped support for @export
with version 14.
Is your question about exporting directives in apollo federation?
Product
Hot Chocolate
Version
14.2.0-p.7
Link to minimal reproduction
https://github.com/ChilliCream/hotchocolate-examples/pull/69/files
Steps to reproduce
Bug is:
composeDirective
does not prefix the directive to compose with@
What is expected?
The created
composeDirective
prefixes the directive to compose with@
What is actually happening?
The created
composeDirective
does not prefix the directive to compose with@
Relevant log output
Additional context
Workaround is to pass a string rather than use a type param