module Stardust::GraphQL::Federated::ClassMethods
Public Instance Methods
federation_sdl()
click to toggle source
# 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