Sha256: da06e45ccc92305bf878c58e939cd33975225b3ba8089b51479f9d4bde1b4890

Contents?: true

Size: 327 Bytes

Versions: 13

Compression:

Stored size: 327 Bytes

Contents

# Wrap the object in NonNullType in response to `!`
# @example required Int type
#   !GraphQL::INT_TYPE
#
module GraphQL::DefinitionHelpers::NonNullWithBang
  # Make the type non-null
  # @return [GraphQL::NonNullType] a non-null type which wraps the original type
  def !
    GraphQL::NonNullType.new(of_type: self)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
graphql-0.9.5 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.9.4 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.9.3 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.9.2 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.8.1 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.8.0 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.7.1 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.7.0 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.6.2 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.6.1 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.6.0 lib/graphql/definition_helpers/non_null_with_bang.rb
graphql-0.5.0 lib/graph_ql/definition_helpers/non_null_with_bang.rb
graphql-0.4.0 lib/graph_ql/definition_helpers/non_null_with_bang.rb