Method: GraphQL::Introspection::TypeType#possible_types

Defined in:
lib/graphql/introspection/type_type.rb

#possible_typesObject



83
84
85
86
87
88
89
# File 'lib/graphql/introspection/type_type.rb', line 83

def possible_types
  if @object.kind.abstract?
    @context.types.possible_types(@object).sort_by(&:graphql_name)
  else
    nil
  end
end