Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MongoDB Basics questions in the following pictures : #inserts a single JSON document into the Collection. Question 3: Insert the following document into the 'Item'

MongoDB Basics
questions in the following pictures : image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
#inserts a single JSON document into the Collection. Question 3: Insert the following document into the 'Item' collection which h { "key" : "gender", "data" : { "M" : "male", "F" : "female", "X" : "Other" } Question 4: Display the document in "Item" collection Question 5: Insert the following documents { "key" : "socialMedia", "data" : {"FB":"facebook", "GO":"google", "LI":"linkedin", "LN":"line", "SK":"skype", "TW":"twitter"} }, { "key" : "categories", "data" : ["cake", "chocolate", "pie","cookie", "donut"] { "key" : "unit", "data" : ["box", "tin","piece", "item"] Question 6: Display the all documents in "Item" collection # fetches all the available documents from the collection. Question 7: Apply find() to check "Item" collection Question 8: Display the document with key="unit" 7 # hint: to specify a sfield> in an embedded document or in an array, use dot Question 9: Update the document with key="gender" as "data.M" = "Man", instea Display the Collection >Question 10: Delete the document with key="categories" Display the collection

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

What consequences are you avoiding?

Answered: 1 week ago