Question: MongoDB Powershell Commands / / Step 1 : Create a database named restaurantsDB, create a collection named restaurants, and insert document 1 in lab 1
MongoDB Powershell Commands
Step : Create a database named restaurantsDB, create a collection named restaurants, and insert document in labdata.txt into the collection.
Note: You do NOT need to write commands to create the database and collection,
The script in labexectute.ps will automatically create the datavase restaurantsDB and the collection restaurants
You only need to write an insertOne command to insert the document into the collection restaurants
Write your commands to finish step after this line
Step : Insert document in labdata.txt into the collection using insertMany command.
Step : Update a restaurant's cuisine from "Bakery" to "American".
Step : Update the restaurant name from "Wendy'S" to "Panda Express" and insert a new field "city": "Chicago" into the "addreess" field.
Step : For each restaurant, update the second score of that restaurant to
Drop the collection restaurants from database restaurantsDB
dbrestaurants.drop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
