Sha256: 759556b5b0e5f0ded8bf99e1222fb14aea0694ea8786d654c30f7fad2a2dada7

Contents?: true

Size: 361 Bytes

Versions: 45

Compression:

Stored size: 361 Bytes

Contents

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

45 entries across 45 versions & 1 rubygems

Version Path
graphql-1.2.6 lib/graphql/define/non_null_with_bang.rb
graphql-1.2.5 lib/graphql/define/non_null_with_bang.rb
graphql-1.2.4 lib/graphql/define/non_null_with_bang.rb
graphql-1.2.3 lib/graphql/define/non_null_with_bang.rb
graphql-1.2.2 lib/graphql/define/non_null_with_bang.rb
graphql-1.2.1 lib/graphql/define/non_null_with_bang.rb
graphql-1.2.0 lib/graphql/define/non_null_with_bang.rb
graphql-1.1.0 lib/graphql/define/non_null_with_bang.rb
graphql-1.0.0 lib/graphql/define/non_null_with_bang.rb
graphql-0.19.4 lib/graphql/define/non_null_with_bang.rb
graphql-0.19.3 lib/graphql/define/non_null_with_bang.rb
graphql-0.19.2 lib/graphql/define/non_null_with_bang.rb
graphql-0.19.1 lib/graphql/define/non_null_with_bang.rb
graphql-0.19.0 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.15 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.14 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.13 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.12 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.11 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.10 lib/graphql/define/non_null_with_bang.rb