Michael Staib
Michael Staib
Sorry, was booked too so many conferences over May and June and had no time to review and help. I will look at this one today. Thank you for helping...
We are working on a new feature that will make BCP environment aware.
Thats is a good idea. With the new YouTube videos we are doing this. Closing this issue.
Why don't you use the HotChocolate.ApolloFederation package?
**FederationSchemaPrinter:** https://github.com/ChilliCream/hotchocolate/blob/main-version-12/src/HotChocolate/ApolloFederation/src/ApolloFederation/FederationSchemaPrinter.cs
Is the federation package a solution for you? It implements all the features of Apollo Federation V1.
These directives are not printed with the federation printer, look here: https://github.com/ChilliCream/hotchocolate/blob/f3db1202c8fc893d2cafd8b9cd993c55492daca2/src/HotChocolate/ApolloFederation/src/ApolloFederation/FederationSchemaPrinter.cs#L22
alternatively: You can use this helper class and use the `PrintSchema` method: https://github.com/ChilliCream/hotchocolate/blob/ef0015b30aa459270508b7cc1b7d23c75237666f/src/HotChocolate/Core/src/Types/SchemaPrinter.cs#L97 I think we should actually create a `ToDocument` helper method in `ISchema` that gives you the schema...
Ideally I must say it should be plug and play with the apollo federation package ... if not we should fix the issues that you have with it there.
Closing this issue since `FederatedSchemaPrinter` already makes sure that the defer directive is not exposed.