DBS311 Lab 6
July 26, 2023DBS311 Lab 8
July 26, 2023
DBS311 Lab 7
$30.00
Order Now
Description
This lab will require the use of your laptop or desktop and some installation. It will be demonstrated online in the lab period.
All students should be able to get full marks for this lab.
- Sign up for mongoDB Atlas and install Visual Studio Code so you can demonstrate simple mongoDB commands.
- Create a collection of your choosing. Something that stores data that is interesting to you. Mine was audiobooks.
- Demonstrate a mongoDB command that lets you enter 3 documents into the collection at once. Include an Id for each document. For my audiobook collection I can save the audiobook titile, the author, the duration in minutes to listen to the audiobook, the narrator, the publisher and the date published. That is 7 key value pairs. Then to prove this is not a relational database I can include in one of the documents something that is not in the other documents – the genre of Science Fiction for example.
Have 7 key value pairs for your documents and have one document that includes an 8th key value pair not found in the other documents.
- Show all the documents in your collection.
- Demonstrate how to remove a single document.
- Put that one deleted document back in but do not include the id this time. Then reshow all the documents in your collection.
- Put in three more documents and show all the documents. The instructor will pick one document to find based on what you have in a key value pair.