lib/mongo/operation/update/command.rb in mongo-2.15.1 vs lib/mongo/operation/update/command.rb in mongo-2.16.0.alpha1
- old
+ new
@@ -30,16 +30,19 @@
include Limited
include WriteConcernSupported
include BypassDocumentValidation
include ExecutableNoValidate
include PolymorphicResult
+ include Validatable
private
def selector(connection)
- { update: coll_name,
- updates: send(IDENTIFIER),
- ordered: ordered? }
+ {
+ update: coll_name,
+ updates: validate_updates(connection, send(IDENTIFIER)),
+ ordered: ordered?,
+ }
end
def message(connection)
Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection))
end