opswatcher
helper for watching ops log in mongoDB for changes in a collection or all changes
Usage
Typescript
// Typescript;// node JSconst Watcher = default;const uri = 'mongodb+srv://username:password@host/database';const watcher = uri;watcher;
If you wish to start watching from an earler date you can pass a date into the constructer
const watcher = uri '2020-04-08 11:33:48';
You can also access the every change with
const watcher = uri; watcherglobal;