3.9 out of 5
3.9
29 reviews on Udemy

Mongoose: MongoDB Object-Document Mapper for NodeJS Apps

Mongoose Course: Master Object-Document Mapper for NodeJS and MongoDB
Instructor:
Azat Mardan
1,073 students enrolled
English [Auto]
Know different data types in the Mongoose Schema class
Store photo and other binary data in MongoDB with Mongoose
Use the populate method and Mongoose references
Create custom Methods and invoke them
Create pre and post Mongoose Hooks to better organize your business logic
Create custom Mongoose setters and getters methods for each field
Perform validation so your app is protected from malicious inputs
Create custom validation methods
Work with virtuals
Write static and instance custom Model methods
Create and use Mongoose Models
Find Mongoose plugins
Organize files with Express app
Bubble errors with the ok module
Use the Validate method
Use Enum data type
Know the difference between the update and save methods

Mongoose Course: Node and Mongo Explained

If you are seeing this page, then you are somewhat related to software engineering, and we all know that for people in tech learning a new technology is important. But we often procrastinate and defer it. And it’s not our fault, because in most cases there are just no good tutorials. This is especially true for new and emerging technologies like NodeJS.

NodeJS + NoSQL = <3

NodeJS (JavaScript on the server) is awesome, but some developers are confused about NoSQL when it comes to working in Node with MongoDB (NoSQL database). Do you need a better explanation of how to use Node.js with MongoDB? The most popular choice is the Mongoose library. Read on to find out why.

Why Mongoose is Your Friend

The danger of not using ORM (object-relational mapping) / ODM (object-document mapping) is that every time you make changes to the structure of the data, you have to modify the application code. In other words, if your application layer touches a database, then you’re in for a big trouble waiting to happen God forbid there are any changes to the database layer… and the chance of you having to make future changes in the software that you wrote is like 99.99%. 🙁 However, by using Mongoose you can mitigate this issue!

Also, you can make your application to have models, validations and at the same time organize code better with custom methods, and pre and post hooks. The additional benefit is that Mongoose methods are easier (and more fun) to use than native MongoDB driver ones.

Finally an Easy Way to Understand How to Use Node with MongoDB

Take a look at Mongoose’s extensive documentation at mongoosejs (dot) com (slash) docs. It’s fairly good, but who has time to read this documentation when you can use that time to write your own apps?! Also, reading online documentation and the library’s source code is boring. Many studies have shown that when something is boring, you learn it less effectively!

That’s why we’re working on a Mongoose course for you! This is the course on Mongoose you’ve been waiting for (as almost 200 backers of our “kickstarter” campaign proved).

What You’ll Be Able to Do

The Mongoose course has more than one hour of HD videos, and INSANE number of examples. After finishing lectures, answering quizzes and doing exercises outlined in the course, you’ll be able to do virtually anything with Node and MongoDB in a sane manner, using the industry’s best techniques and practices.

The course is ready and you can be access IMMEDIATELY… it’s time to take action to ensure you know the best way to use Node and MongoDB!

1
Welcome
2
Instructions

Basics

1
Project Initialization
2
Schema, Model, and The Find Method
3
The Save Method
4
Schema Types, Its Properties and Validation
5
Required Property and Schema Validation
6
Additional Schema Types
7
Complex Schema With Nested Objects
8
Bubbling Errors With The Okay Module
9
The FindOne Method for Get and Put Requests
10
Enum Schema Property
11
Setters and Getters in Schema
12
Custom Field Validation and The Path Method
13
Summary and The Remove Method

Advanced

1
Selecting Fields
2
Virtual Fields
3
Pre Save Hook
4
Pre Validate Hook
5
Post Save Hook
6
The Populate Method and References
7
Static and Instance Methods
8
Summary
9
Uploading and Storing Binary Data

HackHall

1
HackHall Demo
2
Case Study: HackHall.com

Bonus

1
MongoUI Demo
2
HackHall—Chapter 22 from Pro Express.js

This chapter is from Pro Express.js: Master Express.js—The Node.js Framework For Your Web Development which is available at proexpressjs (dot) com. It is a bonus content for Mongoose Course. It's for educational purposes only. Avoid sharing this document outside of this community.

3
Express.js Cheatsheet
4
Oh My JS Ebook
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
3.9
3.9 out of 5
29 Ratings

Detailed Rating

Stars 5
13
Stars 4
6
Stars 3
4
Stars 2
4
Stars 1
2
15a19ce115c9dc3c906503a9a08aabdc
30-Day Money-Back Guarantee

Includes

2 hours on-demand video
3 articles
Full lifetime access
Access on mobile and TV

External Links May Contain Affiliate Links read more

Join our Telegram Channel To Get Latest Notification & Course Updates!
Join Our Telegram For FREE Courses & Canva PremiumJOIN NOW