What does update() in mongodb returns?

by jasen_gottlieb , in category: MySQL , a month ago

What does update() in mongodb returns?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by jerad , 25 days ago

@jasen_gottlieb 

In MongoDB, the update() method returns a WriteResult object that contains information about the outcome of the update operation, such as the number of documents that were modified, matched, or inserted. It can also return information about any errors that occurred during the update operation.