MongoDB – The Complete Developer’s Guide

MongoDB – The Complete Developer’s Guide
MongoDB – The Complete Developer’s Guide
English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 17 Hours | 5.62 GB

Master MongoDB Development for Web & Mobile Apps. CRUD Operations, Indexes, Aggregation Framework – All about MongoDB!

MongoDB is one of the most important databases you can work with these days. It’s extremely popular and MongoDB developers are in high demand.

No matter if you’re building web applications, mobile applications or any other kind of application or if you’re a data scientist – you’ll need to work with data. Storing data, querying it efficiently and minimizing complexities whilst optimizing performance are crucial tasks.

MongoDB makes working with data simple – it’s built on a philosophy that prioritizes performance and efficiency.

In this course, you’ll learn all about MongoDB from scratch. No prior MongoDB or database experience is required!

In detail, you’ll learn:

  • how to install and use MongoDB locally and in the cloud
  • how to perform CRUD (Create, Read, Update, Delete) operations on MongoDB databases
  • how to filter for data efficiently
  • how to work with both the Mongo Shell and drivers (e.g. Node.js driver)
  • how to increase performance by using indexes (and how to use the right indexes!)
  • how to use the amazing “Aggregation Framework” that’s built into MongoDB
  • what replica sets and sharding are
  • how to use MongoDB Atlas – the cloud solution offered by MongoDB
  • how to use the serverless platform (Stitch) offered by MongoDB
  • and much more!

This course is a hands-on course – you’ll learn by writing code/ commands. We’ll work on a wide variety of example data and use-cases and by the end of the course, you’ll have all the knowledge you need to work with MongoDB in your next project!

This course is for you, no matter which programming language you plan on using, you’ll learn a uniform way of interacting with MongoDB that can be easily applied to any language.

Table of Contents

Introduction
1 Introduction
2 What is MongoDB
3 The Key MongoDB Characteristics (and how they differ from SQL Databases)
4 Understanding the MongoDB Ecosystem
5 Installing MongoDB
6 MongoDB Installation FAQ Support
7 Time To Get Started
8 Shell vs Drivers
9 MongoDB Clients The Big Picture
10 Course Outline
11 How To Get The Most Out Of The Course

Understanding the Basics CRUD Operations
12 Module Introduction
13 Understanding Databases Collections Documents
14 The Shell MongoDB Drivers for Different Languages
15 Creating Databases Collections
16 Understanding JSON Data
17 Comparing JSON BSON
18 Create Read Update Delete (CRUD) MongoDB
19 Finding Inserting Deleting Updating Elements
20 Understanding insertMany()
21 Diving Deeper Into Finding Data
22 update vs updateMany()
23 Understanding find() the Cursor Object
24 Understanding Projection
25 Embedded Documents Arrays – The Theory
26 Working with Embedded Documents
27 Working with Arrays
28 Accessing Structured Data
29 Wrap Up
30 Useful Resources Links

Schemas Relations How to Structure Documents
31 Resetting Your Database
32 Module Introduction
33 Why Do We Use Schemas
34 Structuring Documents
35 Data Types – An Overview
36 Data Types in Action
37 Data Types Limits
38 How to Derive your Data Structure – Requirements
39 Understanding Relations
40 One To One Relations – Embedded
41 One To One – Using References
42 One To Many – Embedded
43 One To Many – Using References
44 Many To Many – Embedded
45 Many To Many – Using References
46 Summarizing Relations
47 Using lookUp() for Merging Reference Relations
48 Planning the Example Exercise
49 Implementing the Example Exercise
50 Understanding Schema Validation
51 Adding Collection Document Validation
52 Changing the Validation Action
53 Wrap Up
54 Useful Resources Links

Exploring The Shell The Server
55 Module Introduction
56 Finding Available Options
57 Setting dbpath logpath
58 Exploring the MongoDB Options
59 MongoDB as a Background Service
60 Using a Config File
61 Shell Options Help
62 Useful Resources Links

Using the MongoDB Compass to Explore Data Visually
63 Module Introduction
64 Exploring the MongoDB Compass
65 Useful Resources Links

Diving Into Create Operations
66 Module Introduction
67 Creating Documents – An Overview
68 Understanding insert() Methods
69 Working with Ordered Inserts
70 Understanding the writeConcern
71 The writeConcern in Practice
72 What is Atomicity
73 Importing Data
74 Wrap Up
75 Useful Resources Links

Read Operations – A Closer Look
76 Module Introduction
77 Methods Filters Operators
78 Operators – An Overview
79 Query Selectors Projection Operators
80 Understanding findOne() find()
81 Working with Comparison Operators
82 Querying Embedded Fields Arrays
83 Understanding in and nin
84 or and nor
85 Understanding the and Operator
86 Using not
87 Diving Into Element Operators
88 Working with type
89 Understanding Evaluation Operators – regex
90 Understanding Evaluation Operators – expr
91 Diving Deeper Into Querying Arrays
92 Using Array Query Selectors – size
93 Using Array Query Selectors – all
94 Using Array Query Selectors – elemMatch
95 Understanding Cursors
96 Applying Cursors
97 Sorting Cursor Results
98 Skipping Limiting Cursor Results
99 Using Projection to Share our Results
100 Using Projection in Arrays
101 Understanding slice
102 Useful Resources Links

Update Operations
103 Module Introduction
104 Updating Fields with updateOne() updateMany() and set
105 Updating Multiple Fields with set
106 Incrementing Decrementing Values
107 Using min max and mul
108 Getting Rid of Fields
109 Renaming Fields
110 Understanding upsert()
111 Updating Matched Array Elements
112 Updating All Array Elements
113 Finding Updating Specific Fields
114 Adding Elements to Arrays
115 Removing Elements from Arrays
116 Understanding addToSet
117 Wrap Up
118 Useful Resources Links

Understanding Delete Operations
119 Module Introduction
120 Understanding deleteOne() deleteMany()
121 Deleting All Entries in a Collection
122 Useful Resources Links

Working with Indexes
123 Module Introduction
124 What Are Indexes Why Do We Use Them
125 Adding a Single Field Index
126 Indexes Behind the Scenes
127 Understanding Index Restrictions
128 Creating Compound Indexes
129 Using Indexes for Sorting
130 Understanding the Default Index
131 Configuring Indexes
132 Understanding Partial Filters
133 Applying the Partial Index
134 Understanding the Time-To-Live (TTL) Index
135 Query Diagnosis Query Planning
136 Understanding Covered Queries
137 How MongoDB Rejects a Plan
138 Using Multi-Key Indexes
139 Understanding Text Indexes
140 Text Indexes Sorting
141 Creating Combined Text Indexes
142 Using Text Indexes to Exclude Words
143 Setting the Default Language Using Weights
144 Building Indexes
145 Wrap Up
146 Useful Resources Links

Working with Geospatial Data
147 Module Introduction
148 Adding GeoJSON Data
149 Running Geo Queries
150 Adding a Geospatial Index to Track the Distance
151 Adding Additional Locations
152 Finding Places Inside a Certain Area
153 Finding Out If a User Is Inside a Specific Area
154 Finding Places Within a Certain Radius
155 Wrap Up
156 Useful Resources Links

Understanding the Aggregation Framework
157 Module Introduction
158 What is the Aggregation Framework
159 Getting Started with the Aggregation Pipeline
160 Using the Aggregation Framework
161 Understanding the Group Stage
162 Diving Deeper Into the Group Stage
163 Working with project
164 Turning the Location Into a geoJSON Object
165 Transforming the Birthdate
166 Using Shortcuts for Transformations
167 Understanding the isoWeekYear Operator
168 group vs project
169 Pushing Elements Into Newly Created Arrays
170 Understanding the unwind Stage
171 Eliminating Duplicate Values
172 Using Projection with Arrays
173 Getting the Length of an Array
174 Using the filter Operator
175 Applying Multiple Operations to our Array
176 Understanding bucket
177 Diving Into Additional Stages
178 How MongoDB Optimizes Your Aggregation Pipelines
179 Writing Pipeline Results Into a New Collection
180 Working with the geoNear Stage
181 Wrap Up
182 Useful Resources Links

Working with Numeric Data
183 Module Introduction
184 Number Types – An Overview
185 MongoDB Shell Data Types
186 Understanding Programming Language Defaults
187 Working with int32
188 Working with int64
189 Doing Maths with Floats int32s int64s
190 Whats Wrong with Normal Doubles
191 Working with Decimal 128bit
192 Wrap Up
193 Useful Resources Links

MongoDB Security
194 Module Introduction
195 Understanding Role Based Access Control
196 Roles – Examples
197 Creating a User
198 Built-In Roles – An Overview
199 Assigning Roles to Users Databases
200 Updating Extending Roles to Other Databases
201 Adding SSL Transport Encryption
202 Encryption at REST
203 Wrap Up
204 Useful Resources Links

Performance Fault Tolerancy Deployment
205 Module Introduction
206 What Influences Performance
207 Understanding Capped Collections
208 What are Replica Sets
209 Understanding Sharding
210 Deploying a MongoDB Server
211 Using MongoDB Atlas
212 Backups Setting Alerts in MongoDB Atlas
213 Connecting to our Cluster
214 Wrap Up
215 Useful Resources Links

Transactions
216 Module Introduction
217 What are Transactions
218 A Typical Usecase
219 How Does a Transaction Work
220 Useful Resources Links

From Shell to Driver
221 Module Introduction
222 Splitting Work Between the Driver the Shell
223 Preparing our Project
224 Installing Visual Studio Code
225 Installing the Node.js Driver
226 Connecting Node.js the MongoDB Cluster
227 Storing Products in the Database
228 Storing the Price as 128bit Decimal
229 Fetching Data From the Database
230 Creating a More Realistic Setup
231 Getting a Single Product
232 Editing Deleting Products
233 Implementing Pagination
234 Adding an Index
235 Signing Users Up
236 Adding an Index to Make the Email Unique
237 Adding User Sign In
238 Wrap Up
239 Useful Resources Links

Introducing Stitch
240 Module Introduction
241 What is Stitch
242 Preparations
243 Start Using Stitch
244 Adding Stitch to our App Initializing It
245 Adding Authentication
246 Sending Data Access Rules
247 Fetching Converting Data
248 Deleting Products
249 Finding a Single Product
250 Adding Products
251 Updating Products
252 Switching to User Email Password Authentication
253 Adding User Sign Up Confirmation
254 Adding User Login
255 Rules Real Users
256 The Current State of Authentication
257 Functions Triggers
258 Wrap Up
259 Useful Resources Links

Roundup
260 Course Roundup