The wise MongoDB API
count
method and add a new estimate
option (Thanks @bit-cmdr!)replace
option to update methods (Thanks @lakshmipriyamukundan)mongo+srv
uri (Thanks @s-zimm!)insert
deprecation warning (Thanks @RobertoMachorro!)useUnifiedTopology
option (Thanks @bobmoff!)collection.findOneAndUpdate
now requires an atomic operator in the update object (Thanks @mpangrazzi!)collection.geoNear
(Thanks @mpangrazzi!)collection.findOneAndUpdate
now requires an atomic operator in the update object (Thanks @mpangrazzi!)remove
now uses deleteOne
or deleteMany
under the hood (fix #178)mapReduce
method (fix #167)geoHaystackSearch
methodgeoNear
methodstats
method (fix #191)castIds
. safe
is not true
by default anymore.rawCursor
on the find
method) so that the entire API has the same return type (a promise)