# A collection of {ObjectType}s # # @example a union of types # # PetUnion = GraphQL::UnionType.define do # name "Pet" # description "Animals that live in your house" # possible_types [DogType, CatType, FishType] # end # class GraphQL::UnionType < GraphQL::BaseType include GraphQL::BaseType::HasPossibleTypes attr_accessor :name, :description, :possible_types defined_by_config :name, :description, :possible_types, :resolve_type def kind GraphQL::TypeKinds::UNION end end