Exercise 4
- Start MongoDB server
- Connect to MongoDB server using MongoDB shell and
- Select comics database
- Insert the following documents all at once
{ "name": "BLACK PANTHER", "image": "blackpanther.jpg" }
{ "name": "SUPERMAN", "image": "superman.jpg" }
{ "name": "BATMAN", "image": "batman.jpg" }
- Query all documents
- Query the documents with the
BLACK PANTHER
name - Query the documents with the
BATMAN
name