Company
Date Published
Author
MongoDB
Word count
692
Language
English
Hacker News points
None

Summary

MongoDB has updated its officially supported drivers to introduce new error checking and reporting defaults, aiming to provide a more intuitive experience for users. The previous default behavior, which did not wait for a database response by default, caused confusion among MongoDB users. To rectify this, the new version will have a top-level connection class in each driver that maintains the old default, but becomes deprecated. For new code, the `MongoClient` class is introduced, which defaults to a WriteConcern of 1 and provides a more intuitive experience for users. The update aims to provide better error handling and reporting, while minimizing disruption to existing MongoDB applications.