🔥 HOT: Docs/manual/reference/update methods - Uncensored 2025

MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
Docs Menu

Update Methods

MongoDB provides the following methods for updating documents in a collection:

Updates at most a single document that match a specified filter even though multiple documents may match the specified filter.

Update all documents that match a specified filter.

Replaces at most a single document that match a specified filter even though multiple documents may match the specified filter.

The following methods can also update documents from a collection:

See the individual reference pages for the methods for more information and examples.