Question: Using MongoDB Compass: Connect to your local MongoDB DBMS. (done) Create a new database with a new empty collection. (how do I create a database

Using MongoDB Compass:

Connect to your local MongoDB DBMS. (done)

Create a new database with a new empty collection. (how do I create a database with an empty collection?)

Import the dataset you found on kaggle.com into the empty collection. (I figured out how to import the kaggle dataset, but unsure how to do the prior step of empty collection)

Back up the collection you populated with data by exporting the collection to a .json file. (explain please)

Restore the .json backup file you created to a new collection (explain please)

Use the MongoDB CLI to perform the following queries: (explain all below please)

Perform a find() query that outputs the first five files of one of your collections.

Perform a find() query that looks for documents that have a particular value.

Perform an insertOne() query to insert a document into one of your collections.

Reference: https://www.kaggle.com/datasets/minseokkim/animal10n-dataset?resource=download&select=animal-10n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!