I’ve tried to learn the " db.collection.watch()" method. And it works fine on my “M220” Sandbox cluster (Atlas cluster).
But when I tried to do it on my Home PC using mongodb 4.0.5 I had an error:
“The $changeStream stage is only supported on replica sets”
Of course I don’t use neither replication nor sharding on my “localhost” databases
Is there any way to use “db.collection.watch()” (or maybe some another way to track data changes) if I don’t use replication?