Class: GraphQL::UnionType::AcceptPossibleTypesDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/union_type.rb

Overview

Rubocop was unhappy about the syntax when this was a proc literal

Class Method Summary collapse

Class Method Details

.call(target, possible_types, options = {}) ⇒ Object



7
8
9
# File 'lib/graphql/union_type.rb', line 7

def self.call(target, possible_types, options = {})
  target.add_possible_types(possible_types, **options)
end