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-0.18.9 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.8 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.7 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.6 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.5 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.4 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.3 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.2 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.1 lib/graphql/define/non_null_with_bang.rb
graphql-0.18.0 lib/graphql/define/non_null_with_bang.rb
graphql-0.17.2 lib/graphql/define/non_null_with_bang.rb
graphql-0.17.1 lib/graphql/define/non_null_with_bang.rb
graphql-0.17.0 lib/graphql/define/non_null_with_bang.rb
graphql-0.16.1 lib/graphql/define/non_null_with_bang.rb
graphql-0.16.0 lib/graphql/define/non_null_with_bang.rb
graphql-0.15.3 lib/graphql/define/non_null_with_bang.rb
graphql-0.15.2 lib/graphql/define/non_null_with_bang.rb
graphql-0.14.2 lib/graphql/define/non_null_with_bang.rb
graphql-0.15.1 lib/graphql/define/non_null_with_bang.rb
graphql-0.15.0 lib/graphql/define/non_null_with_bang.rb