DEV Community

Aravind Kumar Vemula
Aravind Kumar Vemula

Posted on

 

How to update data in mongoDB? Help!

Hi!

I am working on a personal project.
I need to know how to update data in database for every 10 seconds.
I am using mongoDB Altas Database which is running on nodejs server.

Can any one suggest the solution?

Top comments (2)

Collapse
 
urielsouza29 profile image
Uriel dos Santos Souza
Collapse
 
lmas3009 profile image
Aravind Kumar Vemula

Thanks for sharing @urielsouza29 👏

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.