Module: ApolloFederation::ServiceField
- Defined in:
- lib/apollo-federation/service_field.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 |
# File 'lib/apollo-federation/service_field.rb', line 8 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#_service ⇒ Object
20 21 22 23 |
# File 'lib/apollo-federation/service_field.rb', line 20 def _service schema_class = context.schema.is_a?(GraphQL::Schema) ? context.schema.class : context.schema { sdl: schema_class.federation_sdl(context: context.to_h) } end |