Iridium v8.0.0-alpha.12 Release Notes
Release Date: 2018-02-06 // about 6 years ago-
🚀 This release adds support for MongoDB's 3.x client driver, with the various new features provided by it. For most users, this should be a drop-in replacement with Iridium abstracting the API changes, however if you are interacting with the underling MongoDB connection objects, you may need to make some changes to your code.
🔄 Changes
Iridium.Core.connection
is now aMongoDB.MongoClient
object rather than the originalMongoDB.Db
object.Iridium.Core.db
now exposes theMongoDB.Db
object if you require it.- ⚡️ Updated the URL builder to meet the requirements of the MongoDB 3 client driver
- ⚡️ Updated the
Iridium.Model.update
method to explicitly callMongoDB.collection.replaceOne
when you provide it with a document that isn't composed entirely of atomic changes. It will also throw an error if you provide such a document (for replacement) and specify{ multi: true }
in your options.