-
ClassDescriptionSuperseded by aggregateSuperseded by aggregate
-
MethodDescriptionoplogReplay has been deprecated in MongoDB 4.4.oplogReplay has been deprecated in MongoDB 4.4.If you are using server release 3.4 or newer, use the
$collStats
aggregation pipeline stage viaDBCollection.aggregate(List, AggregationOptions)
instead. This method uses thecollStats
command, which is deprecated since server release 6.2.If you are using server release 3.4 or newer, use the$collStats
aggregation pipeline stage viaDBCollection.aggregate(List, AggregationOptions)
instead, and inspect thestorageStats.capped
field. This method uses thecollStats
command, which is deprecated since server release 6.2.oplogReplay has been deprecated in MongoDB 4.4.This method is not currently scheduled for removal, but preferMongoClient.getDatabase(String)
for new code. Note thatDB
andMongoDatabase
can be used together in the same application, with the same instance.