Darsh Pateldarsh-patel.hashnode.dev·Dec 10, 2024Data Modeling Using Mongoose: A Comprehensive GuideData modeling is an essential part of backend development. It defines how data is organized, stored, and accessed from a database. It ensures consistency in applications. Mongoose, a popular Node.js library, simplifies data modeling with MongoDB, a N...Discussmongoose
Abdul Rahman Moinrefresh-token-vs-access-token.hashnode.dev·Nov 29, 2024Refresh Token vs Access TokenWhat is an Access Token? An access token, typically JWT, is an encrypted thing that saves the time of the user and the server cost the website owner. But what actually is it? It is an encrypted token or string that is equal (when it got decrypted) to...Discussrefresh-token
Ndungu James Kjames-expo.hashnode.dev·Nov 25, 2024Mongoose & MongoDB vs Node JsMongo DB Node.js applications must use the official driver Mongo DB drivers simplify connecting to and interacting with your database from your application Drivers simplify connecting to and interacting with a MongoDB database Driver- works in tandem...DiscussMongoDB
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