lib/mongo/bulk_write/transformable.rb in mongo-2.10.5 vs lib/mongo/bulk_write/transformable.rb in mongo-2.11.0.rc0
- old
+ new
@@ -90,11 +90,11 @@
{
Operation::Q => doc[:filter],
Operation::U => doc[:replacement],
}.tap do |d|
if doc[:upsert]
- d['upsert'] = true
+ d[:upsert] = true
end
d[Operation::COLLATION] = doc[:collation] if doc[:collation]
end
}
@@ -106,11 +106,11 @@
Operation::Q => doc[:filter],
Operation::U => doc[:update],
Operation::MULTI => true,
}.tap do |d|
if doc[:upsert]
- d['upsert'] = true
+ d[:upsert] = true
end
d[Operation::COLLATION] = doc[:collation] if doc[:collation]
d[Operation::ARRAY_FILTERS] = doc[:array_filters] if doc[:array_filters]
end
}
@@ -122,10 +122,10 @@
{
Operation::Q => doc[:filter],
Operation::U => doc[:update],
}.tap do |d|
if doc[:upsert]
- d['upsert'] = true
+ d[:upsert] = true
end
d[Operation::COLLATION] = doc[:collation] if doc[:collation]
d[Operation::ARRAY_FILTERS] = doc[:array_filters] if doc[:array_filters]
end
}