A replica set in MongoDB is a group of mongod processes that maintain the same data set. With multiple copies of data on different database servers, replication provides a level of fault tolerance against the loss of a single database server. All databases hosted on …
NodeJs
Finding location within the certain range of Latitude & Longitude using Node.js and MongoDB
In this post, I will explain by example how we can find nearest locations by given latitude and longitude with MongoDB. First step – Create schema: // create geolocation Schema const GeoSchema = new Schema({ type: { type:String, …

MongoDB : Transactions
Multi-statement transactions are a big deal for a lot of companies. The transactions feature has been in development since MongoDB version 3.6 when sessions were added. Now we will be able to see how both sessions and transactions work. here is the article, we highlighted a few …