Sha256: 56c984a2d47a76559c14886934580e1103fc5d2e65da9d5862a3f137a7e791b6

Contents?: true

Size: 505 Bytes

Versions: 18

Compression:

Stored size: 505 Bytes

Contents

# 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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
graphql-0.11.1 lib/graphql/union_type.rb
graphql-0.11.0 lib/graphql/union_type.rb
graphql-0.10.9 lib/graphql/union_type.rb
graphql-0.10.8 lib/graphql/union_type.rb
graphql-0.10.7 lib/graphql/union_type.rb
graphql-0.10.6 lib/graphql/union_type.rb
graphql-0.10.5 lib/graphql/union_type.rb
graphql-0.10.4 lib/graphql/union_type.rb
graphql-0.10.3 lib/graphql/union_type.rb
graphql-0.10.2 lib/graphql/union_type.rb
graphql-0.10.1 lib/graphql/union_type.rb
graphql-0.10.0 lib/graphql/union_type.rb
graphql-0.9.5 lib/graphql/union_type.rb
graphql-0.9.4 lib/graphql/union_type.rb
graphql-0.9.3 lib/graphql/union_type.rb
graphql-0.9.2 lib/graphql/union_type.rb
graphql-0.8.1 lib/graphql/union_type.rb
graphql-0.8.0 lib/graphql/union_type.rb