Question: Questions [ 1 0 marks ] ( 1 mark ) Create a collection called games . We re going to put some games in it

Questions [10 marks]
(1 mark) Create a collection called games. Were going to put some games in it.
(2 marks) Add 5 games to the database. Give each document the following properties:
name, genre, rating (out of 100) If you make some mistakes and want to clean it out, use remove()on your collection.
(1 mark) Write a query that returns all the games.
(2 marks) Write a query to find one of your games by name. Use the findOne method. Look how much nicer its formatted!
(2 marks) Write a query that returns the 3 highest rated games.
(2 marks) Write a query that returns only games that have achievements. Not all of your games should have achievements, obviously.

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 Programming Questions!