how do i subscribe to any changes done to any collection in a db.
TL;DR
Developer is looking for a way to subscribe to any changes made to the database regardless of the collection.
Solution:
To achieve this, you can make use of change streams in MongoDB. Change streams allow you to listen for changes in a MongoDB collection and perform certain actions when changes occur. By creating a change stream on the database level instead of on a specific collection, you can listen for changes across all collections within the database.
Here's an example code snippet in Node.js:
```javascript
const MongoClient = require('mongodb').MongoClient;
// Connection URL
const url = 'mongodb://localhost:27017';
// Database Name
const