OpLog support
FerretDB currently has a basic implementation of the OpLog (operations log).
The OpLog is a special capped collection which stores all operations that modify your data. A capped collection is a fixed-sized collection that overwrites its entries when it reaches its maximum size. Naturally, OpLog is a capped collection so as to ensure that data does not grow unbounded.
At the moment, only basic OpLog tailing is supported. Replication is not supported yet.
Oplog support is critical for the Meteor framework to build real-time applications. Such applications require notifications on real-time events and can use the OpLog to build a simple pub/sub system.
Enabling OpLog functionality
FerretDB will not create the oplog automatically; you must do so manually.
To enable OpLog functionality, manually create a capped collection named oplog.rs in the local database.
// use local
db.createCollection('oplog.rs', { capped: true, size: 536870912 })