Skip to main content
00:00/00:00
Lecture 17 of 31

Update Add an element to an array in a document

Download Course (Free)

Course Content

0 / 31 completed
Section 1: Introduction3 videos

Goals and prerequisites

1m

Introduction

1m

Tooling Install, configure, and basic use of mongosh and Compass

6m
Section 2: CRUD Create (Insert) Documents5 videos

Create Insert a record into the document

5m

Create Insert multiple records with one statement

8m

Create Complex schema (array, object, reference, and constraints)

9m

Create Insert multiple records using a loop (seeding)

8m

Create Insert multiple records from a file

9m
Section 3: CRUD Read (QueryFind) Documents8 videos

Find Query with a simple filter

7m

Find Specify which fields to return in a .find()

4m

Find Query operators { $gte, $in [], etc }

6m

Find Sorting and limiting

8m

Find $and and $or queries

5m

Find Values in subdocuments and objects

10m

Find Values in arrays

9m

Find Custom query logic with functions

6m
Section 4: CRUD Update Documents2 videos

Update Add an element to an array in a document

9mNow Playing

Update Use a filter to update one or more records

7m
Section 5: CRUD Delete Documents2 videos

Delete Remove an element in an array within a document

4m

Delete Multiple records

8m
Section 6: CRUD Query and Find with Pipelines6 videos

Find Using aggregation pipeline to process documents

6m

Find Aggregation with $group and $sort

7m

Find Use $project to shape your output

4m

Find Create calculated fields

5m

Aggregate Custom logic with an accumulator

7m

Aggregate Custom logic with a function

4m
Section 7: Working with Multiple Documents and Relationships4 videos

Find Referenced data sets, iterating with a cursor

6m

Find Looking up a referenced document, nesting

6m

Find $lookup() to join collections

10m

Using $mergeObjects

8m
Section 8: Conclusion1 videos

Next steps

2m