Module: Stardust::GraphQL::Federated::ClassMethods
- Defined in:
- lib/stardust/graphql/federated.rb
Instance Method Summary collapse
Instance Method Details
#federation_sdl ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/stardust/graphql/federated.rb', line 12 def federation_sdl # remove this hack once this https://github.com/apollographql/apollo-server/issues/3100 gets fixed @federation_sdl ||= begin document_from_schema = ApolloFederation::FederatedDocumentFromSchemaDefinition.new(self) ::GraphQL::Language::Printer.new.print(document_from_schema.document).gsub("schema {\n query: Query\n mutation: MutationRoot\n}\n\n", "") end end |