manipulating MongoDB using CRUD operations.
- Created a database called "contact".
- Created a collection called "contactlist".
- Inserted the following documents into the "contactlist" collection:
- Last name: Ben Lahmer, First name: Fares, Email: [email protected], age: 26
- Last name: Kefi, First name: Seif, Email: [email protected], age: 15
- Last name: Fatnassi, First name: Sarra, Email: [email protected], age: 40
- Last name: Ben Yahia, First name: Rym, age: 4
- Last name: Cherif, First name: Sami, age: 3
- Displayed all of the contacts list.
- Displayed all the information about only one person using his ID.
- Displayed all the contacts with an age >18.
- Displayed all the contacts with an age >18 and name containing "ah".
-
Changed the contact's first name from "Kefi Seif" to "Kefi Anis".
-
Deleted the contacts that are aged under <5.
-
Display all of the contacts list.
Note: Save your work as screenshots.