Back to articles
Day 33 of #100DaysOfCode — Mongoose

Day 33 of #100DaysOfCode — Mongoose

via Dev.to WebdevM Saad Ahmad

Databases can store any amount or type of data , but they usually don't enforce a strict structure by default. Especially with NoSQL databases like MongoDB , developers can insert documents with different fields or data types. To maintain structure, validation, and consistency , we use something called Mongoose . Day 33 was all about what Mongoose is, why it exists, and how it helps manage data in Node.js applications . TL;DR MongoDB is schema-less , meaning it doesn't enforce strict structure. Mongoose provides schemas, validation, and models . It acts as a layer between Node.js and MongoDB . It makes large applications cleaner, safer, and easier to maintain . What is Mongoose Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js . It provides a schema-based solution to model application data, even though MongoDB itself is schema-less. In simple terms: Mongoose adds structure and rules on top of MongoDB so developers can manage data more safely and easily. What Doe

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles