This repository contains hands-on labs for the following new features in MongoDB 3.6:
- Change Streams
- Strict Document Validation (aka JSON Schema support)
- Aggregation Framework improvements
For all the hands-on labs available in this repository, you will need to take the following steps to install the latest version of MongoDB 3.6 on your machine:
Download the latest version of MongoDB 3.6 from the Download Center. At the time of this writing, this latest version is the Release Candidate 1, available in the Development Releases section.
-
Create a
data
folder in your MongoDB 3.6 root folder -
From your MongoDB 3.6 root folder, start mongod with the following command:
./bin/mongod --dbpath ./data
-
In a separate Terminal/Command Prompt window from your MongoDB 3.6 root folder, start the Mongo shell by typing
./bin/mongo
-
Type the following to switch to the
test
databaseuse test