update (
, [ | Object query ]
) {

Apply a MongoDB update operation in place.

Arguments

optional
| Object query

If the update uses the positional operator, provide a query to define it.

| Object target

The document to update. This document will be modified.

| Object change

The update specification to apply.