lib/mongo/bulk_write/transformable.rb in mongo-2.4.3 vs lib/mongo/bulk_write/transformable.rb in mongo-2.5.0.beta
- old
+ new
@@ -102,10 +102,11 @@
Operation::U => doc[:update],
Operation::MULTI => true,
Operation::UPSERT => doc.fetch(:upsert, false)
}.tap do |d|
d[Operation::COLLATION] = doc[:collation] if doc[:collation]
+ d[Operation::ARRAY_FILTERS] = doc[:array_filters] if doc[:array_filters]
end
}
# Proc to transform update one ops.
#
@@ -116,9 +117,10 @@
Operation::U => doc[:update],
Operation::MULTI => false,
Operation::UPSERT => doc.fetch(:upsert, false)
}.tap do |d|
d[Operation::COLLATION] = doc[:collation] if doc[:collation]
+ d[Operation::ARRAY_FILTERS] = doc[:array_filters] if doc[:array_filters]
end
}
# Document mappers from the bulk api input into proper commands.
#