Method: GraphQL::Introspection::TypeType#interfaces

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

#interfacesObject



65
66
67
68
69
70
71
# File 'lib/graphql/introspection/type_type.rb', line 65

def interfaces
  if @object.kind.object? || @object.kind.interface?
    @context.types.interfaces(@object).sort_by(&:graphql_name)
  else
    nil
  end
end