Question: For the following set of problems, use the fact database and patron collection created in the text for use with MongoDB. 1. Create a new

 For the following set of problems, use the fact database and

For the following set of problems, use the fact database and patron collection created in the text for use with MongoDB. 1. Create a new document in the patron collection. The document should satisfy the following requirements: First name is "Rachel" Last name is "Cunningham" Display name is "Rachel Cunningham" Patron type is student Rachel is 24 years old Rachel has never checked out a book Be certain to use the same keys as already exist in the collection. Be certain capitalization is consistent with the documents already in the collection. Do not store any keys that do not have a value (in other words, no NULLs). 2. Modify the document entered in the previous question with the following data. Do not replace the current document. Rachel has checked out two books on January 25, 2018. The id of the first checkout is "95000" The first book checked out was book number 5237 Book 5237 is titled "Mastering the database environment" Book 5237 was published in 2015 and is in the "database" subject The id of the second checkout is "95001" The second book checked out was book number 5240 Book 5240 is titled "iOS Programming" Book 5240 was published in 2015 and is in the "programming" subject Use the same keys as already exist within the collection. Conform to the existing documents in terms of capitalization. 3. Write a query to retrieve the _id, display name and age of students that have checked out a book in the cloud subject

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To handle these tasks using MongoDB well go through each step Step 1 Create a New Document First wel... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!