You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ComposeDirective currently has all directives from the supergraph stripped from the final api schema. This makes it difficult to implement a custom directive in a federated gateway as the directive is not included in the api schema.
An option would be to add composeDirective directives to the api schema or alternatively extend the composeDirective to take an option @composeDirective(name: "@foo", includeInApiSchema: true) or equivalent.
The text was updated successfully, but these errors were encountered:
This seems consistent with what I'm seeing in router as well apollographql/router#4793. We are working on upgrading to Fed 2 and router independently, getting this functionality in both places would help
I would like to raise this aswell.
Implementing a custom directive with a import { mapSchema } from "@graphql-tools/utils";
Is currently impossible. I have a suspicion that this might be by design to push people towards the paid apollo router?
Description
ComposeDirective currently has all directives from the supergraph stripped from the final api schema. This makes it difficult to implement a custom directive in a federated gateway as the directive is not included in the api schema.
All directives are removed here.
An option would be to add composeDirective directives to the api schema or alternatively extend the composeDirective to take an option
@composeDirective(name: "@foo", includeInApiSchema: true)
or equivalent.The text was updated successfully, but these errors were encountered: