Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NOSQL DB INCLUDE THE MONGO SHELL SCRIPTS 1 Create a database OnlineGameStore Create a collection called games. Add 10 games to the database. Give each
NOSQL DB
INCLUDE THE MONGO SHELL SCRIPTS
1 Create a database OnlineGameStore
- Create a collection called games.
- Add 10 games to the database. Give each document the following fields:
Name (value type string), genre (value type array), rating (value type integer) Please insert some dummy data according to the specified data types.
- Write a query that returns all the games
- Write a query to find one game by a specific name. Use a nice output format.
- Write a query that returns games of a specific genre type.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started