Static factory method to create an Update using the provided key
public static Update fromDocument(org.bson.Document object,
Creates an Update instance from the given Document. Allows to explicitly exclude fields from making
it into the created Update object. Note, that this will set attributes directly and not use
$set. This means fields not given in the Document will be nulled when executing the update. To
create an only-updating Update instance of a Document, call set(String, Object) for each
value in it.
object - the source Document to create the update from.
Deprecated.as of MongoDB 2.4. Removed in MongoDB 3.6. Use $push $each instead.
Update using the $pushAll update modifier. Note: In MongoDB 2.4 the usage of $pushAll has been deprecated in favor of $push $each.
Important: As of MongoDB 3.6 $pushAll is not longer supported. Use $push $each instead.
push(String)) returns a builder that can be used to populate the $each object.