Answered step by step
Verified Expert Solution
Link Copied!

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

  1. Create a collection called games.
  2. 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.

  1. Write a query that returns all the games
  2. Write a query to find one game by a specific name. Use a nice output format.
  3. Write a query that returns games of a specific genre type.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions