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



9
10
11
# File 'lib/graphql/union_type.rb', line 9

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