Dianne De Jesusdiaanedev.hashnode.dev·3 hours agoModel.find() no longer accepts a callback in MongooseWhen updating Mongoose on an old practice project I got this error in reference to my passport deserializeUser. I found a reply on https://stackoverflow.com/questions/75655652/model-find-no-longer-accepts-a-callback-in-mongoose that worked well. Orig...DiscussJavaScript
Dianne De Jesusdiaanedev.hashnode.dev·May 19, 2024MongoStore cannot be invoked without 'new'When updating an old project I got this error, plus some deprecated warnings. The project was just an old practice project that uses Mongodb, Mongoose, Connect-Mongo and Express. I did some research and came across these pages: https://mongoosejs.com...DiscussMongoDB
SATYAsatya01.hashnode.dev·May 19, 2024mongooseAggregatePaginate in simple languageLet us begin this by understanding What is mongooseAggregatePaginate ? In simple words mongooseAggregatePaginate is a plugin ( a software component that adds a specific feature to an existing program ) for mongoose, a popular mongoDB object modelling...Discuss·36 readsMongoDB
Guileasguileas.hashnode.dev·May 8, 2024Mongoose - Add a unique index on an existing collectionWhen you work with MondoDB you often use indexes to optimize your query. If you want to create a unique index to prevent duplicated entries for a specific field (like email or username for example) on a new collection you can do it by adding the uniq...DiscussWhat I've learned todaymongoose
Michelle Ndianguimitchcodes.hashnode.dev·May 2, 2024How to Create an ACID Transaction in MongooseA transaction, in the context of database systems, is a single unit of work. It either has to be completed fully or not completed at all to leave the database in a consistent state. For example, In an e-commerce application, when a new order is creat...DiscussMongoDB
Ruptu Dasruptudas011.hashnode.dev·May 1, 2024My Voting AppTitle: Building a Voting App with the MERN Stack: Model Implementation Are you passionate about democracy and technology? Join me on my journey as I develop a voting app using the MERN (MongoDB, Express.js, React.js, Node.js) stack. In this blog post...Discussbackend
Onkar Sabaleonkarsdev.hashnode.dev·Apr 29, 2024Maximizing MongoDB Resilience: A Guide to Database Replication and Oplog TailingIntroduction: In the world of database management, resilience is paramount. MongoDB, a leading NoSQL database, offers robust replication mechanisms coupled with Oplog tailing, empowering developers to build fault-tolerant and highly available systems...Discuss·11 likes·30 readsoplog
Atif Aliatifff.hashnode.dev·Apr 28, 2024Transactions in MongoDB with ACID PropertiesIntroduction Transactions are set of operations that are executed as a single atomic unit, It means a set of operation is called transaction if all the operation are executed successfully and if any one of the operation fails then the entire transact...Discuss·50 likes·95 readsMongoDB
Renisha Christie.Ablog.renishachristie.com·Apr 21, 2024Authentication Progress and Discoveries in Week 3 of Collaborative Data Visualization Platform DevelopmentHello again everyone, and welcome back for week 3 of building the collaborative elephant data visualization platform! This week has been a fascinating journey filled with progress, new learnings, and a few unexpected detours along the way. Authentica...DiscussWeek by Week: The Making of a Collaborative Visualization PlatformNext.js
Gokul Pisharodygokulpisharody.hashnode.dev·Apr 16, 2024mongodb and mongoosemongodb C -> insertMany([{},{}]), insertOne({}) R -> find(), findOne() U -> updateMany(), updateOne() D -> deleteMany([]), deleteOne() mongosh # mongodb shell show dbs # show all db present in local system use <name_of_db> # 1. if db is present...DiscussMongoDB