Sha256: a5fc6d9407d60d3236ea5507bf387ad4576684772c30d27a634ba6ce25f2765e

Contents?: true

Size: 391 Bytes

Versions: 181

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module Define
    # Wrap the object in NonNullType in response to `!`
    # @example required Int type
    #   !GraphQL::INT_TYPE
    #
    module NonNullWithBang
      # Make the type non-null
      # @return [GraphQL::NonNullType] a non-null type which wraps the original type
      def !
        to_non_null_type
      end
    end
  end
end

Version data entries

181 entries across 181 versions & 2 rubygems

Version Path
graphql-1.10.0.pre4 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.18 lib/graphql/define/non_null_with_bang.rb
graphql-1.10.0.pre3 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.17 lib/graphql/define/non_null_with_bang.rb
graphql-1.10.0.pre2 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.16 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.15 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.14 lib/graphql/define/non_null_with_bang.rb
graphql-1.10.0.pre1 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.13 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.12 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.11 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.10 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.9 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.8 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.7 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.6 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.5 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.4 lib/graphql/define/non_null_with_bang.rb
graphql-1.9.3 lib/graphql/define/non_null_with_bang.rb