Learn Mongoose - A NoSQL ODM | The Best Way to Write MongoDB Queries in NodeJS

Опубликовано: 16 Июль 2021
на канале: Kritika & Pranav | Programmer Couple
16,314
359

Mongoose is a promise-based Node.js Object Data Modeling library (ODM) for Mongo DB, which is one of the most popular NoSQL databases. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB. MongoDB is a schema-less NoSQL document database - definition from freecodecamp.org
So, there is no need to write or learn complex database queries or create complicated schemas.
Now, as you may have seen above that there are many advantages of using any ORM over writing Raw DB queries. Check out the video to know more.
--
GitHub Repository:
https://github.com/KritikaSharmaKS/Mo...

Mongoose Documentation:
https://mongoosejs.com/docs/
--
SQL ORMS:
Sequelize:    • Learn Sequelize - A NodeJS ORM | The ...  
Object.js:    • Learn Objection.js - A NodeJS ORM wit...  
Bookshelf.js:    • Learn Bookshelf JS - A NodeJS ORM wit...  
--
Essential JavaScript Libraries:    • JavaScript (Essential) Libraries  
Programmer Girl Series:    • Programmer Girl Series  
Programmer React Series:    • Programmer Reacts  
Short JavaScript Tutorials:    • JS Tutorials  
--
Sign up for our newsletter: https://www.theimmigrantprogrammers.com
--
Chapters:
0:00 Intro
0:35 Intro to Mongoose
1:21 Database Structure
2:06 Install Mongoose
2:27 Establish Database Connection
3:10 Install Mongo DB on Local Machine
4:38 Define Customer Collection
7:24 Define Order Collection
8:18 Define Foreign Keys Using Mongoose
11:27 Intro to MongoDB Queries
11:38 SQL vs Mongo (Jargon)
12:30 MongoDB Compass Introduction
15:05 Insert Multiple Documents
17:54 Delete Document Query
20:20 Find/Selection Query
23:02 Insertion Query with Foreign Key
27:50 Conditional Selection Query
30:10 Summary
31:00 Mongoose Documentation
31:29 Outro
--
If you’re just as crazy for tech as us, we’d love to keep you around. You can also find us at:
Twitter:   / prog_couple  
Blog/Website: https://www.theimmigrantprogrammers.com
Instagram:   / programmer_couple  
Facebook:   / programmercouple  
LinkedIn:   / prog-couple  

We’ll be waiting to catch up with a fellow techie:)


Смотрите видео Learn Mongoose - A NoSQL ODM | The Best Way to Write MongoDB Queries in NodeJS онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Kritika & Pranav | Programmer Couple 16 Июль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 16,314 раз и оно понравилось 359 людям.