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.14.1 lib/graphql/define/non_null_with_bang.rb
graphql-0.14.0 lib/graphql/define/non_null_with_bang.rb
graphql-0.13.0 lib/graphql/define/non_null_with_bang.rb
graphql-0.12.1 lib/graphql/define/non_null_with_bang.rb
graphql-0.12.0 lib/graphql/define/non_null_with_bang.rb