Module Mongo::BulkWrite::Transformable
In: lib/mongo/bulk_write/transformable.rb

Defines behavior around transformations.

@api private

@since 2.1.0

Constants

DELETE_MANY = :delete_many.freeze   The delete many model constant.

@since 2.1.0

DELETE_ONE = :delete_one.freeze   The delete one model constant.

@since 2.1.0

INSERT_ONE = :insert_one.freeze   The insert one model constant.

@since 2.1.0

REPLACE_ONE = :replace_one.freeze   The replace one model constant.

@since 2.1.0

UPDATE_MANY = :update_many.freeze   The update many model constant.

@since 2.1.0

UPDATE_ONE = :update_one.freeze   The update one model constant.

@since 2.1.0

DELETE_MANY_TRANSFORM = ->(doc){ { Operation::Q => doc[:filter], Operation::LIMIT => 0 }.tap do |d| d[Operation::COLLATION] = doc[:collation] if doc[:collation]   Proc to transform delete many ops.

@since 2.1.0

[Validate]