On your computer, go to this tutorial to study the basic MongoDB CRUD operations: https://docs.mongodb.com/manual/crud/ Open our
Fantastic news! We've Found the answer you've been seeking!
Question:
- On your computer, go to this tutorial to study the basic MongoDB CRUD operations: https://docs.mongodb.com/manual/crud/
- Open our lab MongoDB collection at: https://mongoplayground.net/p/xxyyMDsySoJ
- The collection is visible in the "Configuration" column.
- In the "Query" column in the middle of the page, write queries to solve the following questions (you may need to learn some of the MongoDB Operators https://docs.mongodb.com/manual/reference/operator/). For each question, you must include the query command as text and the result screen shot in your submission.
- Find all employees whose salary is higher than 500.
- Update the salary of the employee whose name is "JB" by adding 800 to its current value. (No hardcoded new value. Hint: use $inc)
- Add a new field phone to document with name "RS" and set phone value as "6145555555". (Hint: use $set)
Related Book For
Posted Date: