MongooseError: Operation `warns.findOne()` buffering timed out after 10000ms code example

Example 1: mongodb Operation `events.find()` buffering timed out

The issue on model.find() error: Operation products.find() buffering 
timed out after 10000ms" was resolved by removing the node_module 
folder, *.json files and reinstalling the mongoose module.

The issue on the warnings was resolved by following this
instructions https://mongoosejs.com/docs/deprecations.html

Example 2: MongooseError: Operation `warns.findOne()` buffering timed out after 10000ms

This link explains everything, solve the issue.
https://dev.to/veroca88/set-up-mongodb-atlas-and-connect-with-node-js-avoid-mongooseerror-operation-x-findone-buffering-timed-out-after-10000ms-5dpi

Tags:

Misc Example