For this assignment, you will create a MongoDB cluster on Mongo Atlas, load a sample data set and perform some queries. First, create a Mongo Cluster in Atlas. Make sure you create the free tier as specified in the instructions provided.
https://docs.atlas.mongodb.com/tutorial/create-atlas-account/ https://docs.atlas.mongodb.com/tutorial/deploy-free-tier-cluster/ https://docs.atlas.mongodb.com/security/add-ip-address-to-list/ https://docs.atlas.mongodb.com/tutorial/create-mongodb-user-for-cluster/
Once you have your clusters up and running, you should be able to connect to them:
On the Collections tab, choose to load sample dataset
Once the data set is loaded, you will have access to multiple databases. Work with the database “sample_mflix”. You can view this under the “collections” tab.
You can use the following documentation to aid in your queries
https://docs.mongodb.com/manual/reference/operator/query/
Once the data has been loaded, perform the following queries:
Find the documents in the movie collection for with the title “The Perils of Pauline”.
Find the documents in the movie collection which had movies in 1915 OR 1903. (Hint: use $or)
Find the documents in the movie collection which have runtime of greater than 160 minutes and less than 162 minutes. (Hint: use $and, $gt, $lt)
Find all the documents in the movie collection which do not have a rating of G.
Submit a PDF document with 4 screenshots for each of the queries of the collections tab with your queries successfully executing on Atlas. PDF Document should have screenshots like this:
コメント