This repository contains a script to reproduce a specific issue with Mongoose and MongoDB change streams. The script uses mongodb-memory-server
to create an in-memory MongoDB replica set and then tests the behavior of Mongoose change streams under certain conditions.
Before running the script, ensure you have the following installed:
- Node.js
- npm (Node Package Manager)
To set up the project, follow these steps:
- Clone the repository:
git clone https://github.com/Klem3n/mongoose-error
cd mongoose-error
- Install the dependencies:
npm install
To start the script, use the following command:
npm start
This will run index.js.
The script aims to reproduce a specific issue where a change stream error in MongoDB is not caught by Mongoose.