# File lib/mongo/bulk_write/validatable.rb, line 40
      def validate(name, document)
        validate_operation(name)
        validate_document(name, document)
        if document.respond_to?(:keys) && (document[:collation] || document[Operation::COLLATION])
          @has_collation = true
        end

        if document.respond_to?(:keys) && document[:array_filters]
          @has_array_filters = true
        end
      end