This old question SO question has the answer for versions 2.6 and prior, but it seems MongoDB 3.2 and up do not allow the
--master flag that would start the server enabling the oplog, which would allow watching streams.
Is there a way to do this without starting a replica set in 4.0? I just want to be able to watch for changes on a standalone server for "real time" like capabilities.
I'm aware I can start a "fake" replica set with
--replSet, but I'm trying to deploy this server on a docker container and I would like to avoid starting the image and then having to exec into it just to finish configuring the set.