Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Insert three documents in your collection that includes an array value of three or four elements for each new document. For two of those

1. Insert three documents in your collection that includes an array value of three or four elements for each new document. For two of those documents have different array elements. With the third document use the same array elements as your second document, but this time have them ordered differently. Also include a key value pair that includes a number that can be incremented and decremented. Finally have the value for one of your key value pairs set to null. This step does not need to be demonstrated.

 

2. Demonstrate a successful search based on one element that exists in one of your arrays 

 

3. Demonstrate a successful search that returns only one of the documents that have the same elements (it should miss the other document because the elements are in a different order). Demonstrate a successful search that returns both documents with the same elements.

 

4. Demonstrate a succesful search using $in. 

 

5. Demonstrate a search for null referring the key value pair where you had included null in step one. Then show a search for not null. 

 

6. Demonstrate a multi document update where you increase a mumeric key value pair by 10. Show the increase with a find and then decrease that same key value pair by 10 and reshow the result. Then show a single document update where you increase a numeric value by 5, demonstrate it worked and then reverse it.

 

7. Add a key value pair to one of the documents in your collection. Make this fit with the theme of your collection. Show this, then remove it and demonstrate the key value pair was successfully removed.

 

8. Demonstrate replacing one of your documents with a doument that includes an embedded document in your collection. Show it first and then update something in the embedded document.

Step by Step Solution

3.36 Rating (143 Votes )

There are 3 Steps involved in it

Step: 1

1 Insert three documents in your collection that includes an array value of three or four elements for each new document For two of those documents have different array elements With the third documen... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Accounting and Reporting a Global Perspective

Authors: Michel Lebas, Herve Stolowy, Yuan Ding

4th edition

978-1408066621, 1408066629, 1408076861, 978-1408076866

More Books

Students also viewed these Databases questions

Question

What information would you want that you are not getting now?

Answered: 1 week ago

Question

What is a verb?

Answered: 1 week ago