Hi, what is the best practice for connecting a small server to MongoDB:
1 - creating a connection pool
2 - catching errors and reconnecting if the connection is lost?
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
So, there is a field which is an array of objects of keys “date”, “duration”, and “equipment”. I want to filter that array of objects according the date using aggregation pipeline | 3 | 501 | May 2024 |
MongooseServerSelectionError but I’ve done all I could to fix it | 1 | 471 | Nov 2024 |
Data loss from collection | 2 | 363 | Jun 2024 |
Use $setWindowFields to group daily users registered by channel | 1 | 147 | Aug 2024 |
Connection problem on Render only. Error says IP not whitelisted, but it is | 1 | 71 | Jan 2 |