Class: ApolloFederation::Entity

Inherits:
GraphQL::Schema::Union
  • Object
show all
Defined in:
lib/apollo-federation/entity.rb

Class Method Summary collapse

Class Method Details

.resolve_type(object, context) ⇒ Object



9
10
11
# File 'lib/apollo-federation/entity.rb', line 9

def self.resolve_type(object, context)
  context[object]
end