Akshay Bendadiakshay-bendadi.hashnode.dev·Nov 19, 2024Understanding Data Modeling with MongooseAs part of my full-stack learning journey, today marks Day 8, and I delved into the critical concept of data modeling with Mongoose. Mongoose is a powerful ODM (Object Data Modeling) library for MongoDB, and it simplifies defining schemas, structurin...Discussbackend
Muhammad Inamreactdevsolutions.hashnode.dev·Nov 11, 2024How to Create a RESTful API with Node.js, Express, and MongoDB using MVC patternIn this post, we'll explore setting up a basic RESTful API using Node.js, Express.js, MongoDB, and Mongoose using the MVC (Model-View-Controller) pattern. By structuring our application this way, we create a modular, organized, and scalable project. ...DiscussMongoDB
Hussnain Ahmadpsychocoder.hashnode.dev·Nov 9, 2024Revizio: A Flashcard Tool to Boost Retention Through Spaced RepetitionHi, I am writing after one month now. Previously, I ended my series “Weekly Dev Journal” that I was writing from start of 2023. after that, I didn’t get motivation to write about something. Then, I got idea for articles, and I thought I made projects...Discuss·10 likesBuilding from Scratchbuilding from scratch
Tejas Shindetejasgshinde.hashnode.dev·Nov 6, 2024The Difference Between find() and findById() in MongoDBIf you're working with MongoDB, you've likely encountered the find() and findById() methods. While both are used to retrieve documents from a database, they have some key differences that are important to understand.find({object}) findById(string) fi...DiscussMongoDB
Priyanshu Pandeypriyanshupandey.hashnode.dev·Nov 3, 2024How to Implement Mongoose Middleware for Improved Data HandlingIn Mongoose, middleware is a way to define custom logic to run before or after certain actions in your MongoDB schema, like saving a document, updating, deleting, or even finding. Middleware functions allow you to add specific behavior to these opera...DiscussMiddleware
Priyanshu Pandeypriyanshupandey.hashnode.dev·Oct 31, 2024A Comprehensive Guide to Mongoose Models: Key Advantages and How to Use ThemModels are like special templates made from schema definitions. They let us create and manage documents (records) in MongoDB. Each item created with a model is called a document, and models help us easily add, find, and work with these documents in t...Discussmongoose
Alejandro Benjumea Aguirrealejodev.hashnode.dev·Oct 28, 2024ORM en Node.js: Introducción a Sequelize y Mongoose para Bases de Datos SQL y NoSQLEn este post aprenderemos cómo establecer la conexión a nuestra base de datos desde un proyecto en Node.js utilizando ORM (Object-Relational Mapping). Los ORM facilitan no solo la conexión con la base de datos, sino que también simplifican la interac...DiscussNode.js
Arturcode-with-arthur.hashnode.dev·Oct 28, 2024Building and Testing a Node.js API with MongoDB Atlas and PostmanIntroduction Hey, have you ever worked with Node.js and needed a reliable place to store data? Sometimes, you want a quick, easy way to save and retrieve information without dealing with complicated databases. That’s where MongoDB Atlas comes in—a fu...DiscussMongoDB
Kunal Mathuridevwithkunal.hashnode.dev·Oct 16, 2024Understanding Why MongoDB is Popular for Distributed and High-Availability Systems by its MONGODB_URL...In the MongoDB connection string: “MONGODB_URL = "mongodb+srv://abc:abc@cluster0.k5cw5.mongodb.net/jwtauth?retryWrites=true&w=majority" The query parameters ”?retryWrites=true&w=majority“ provide specific configurations that impact the behavior of th...DiscussNode.js
Prabhdeep Singhmongovspostgres.hashnode.dev·Sep 24, 2024When to Use MongoDB vs PostgreSQL in Your Node.js Project: A Comprehensive GuideAs developers, choosing the right database for a Node.js project can significantly impact its performance, scalability, and maintenance. Two popular choices are PostgreSQL, a relational database, and MongoDB, a NoSQL document-based database. Both hav...DiscussNode.js