Sha256: 8c21d41631cb13abf8d0e4476d7548d48e50ea1e8f7175f724bd2c82ba45389f

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

# A list type wraps another type.
#
# See {TypeKind#unwrap} for accessing the modified type
class GraphQL::ListType < GraphQL::ObjectType
  attr_reader :of_type
  def initialize(of_type:)
    @name = "List"
    @of_type = of_type
  end
  def kind
    GraphQL::TypeKinds::LIST
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphql-0.7.1 lib/graphql/list_type.rb
graphql-0.7.0 lib/graphql/list_type.rb
graphql-0.6.2 lib/graphql/list_type.rb
graphql-0.6.1 lib/graphql/list_type.rb
graphql-0.6.0 lib/graphql/list_type.rb
graphql-0.5.0 lib/graph_ql/list_type.rb
graphql-0.4.0 lib/graph_ql/list_type.rb