yxlau / assignment_practice_with_mongodb

Querying with the MongoDB shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

assignment_practice_with_mongodb

Querying with the MongoDB shell

Getting Started

IMPORTANT don't run __seeds__.js. It is there only to generate __products__.js in the case that it MUST be regenerated. Regenerating that data will make query results different across instances of this assignment.

Products

To get started import __products__.js into your MongoDB database with the following command:

$ mongoimport --db test --collection products --file __products__.js

Restaurants

Restaurant data is imported from the MongoDB test database provide here.

Import the data from the __restaurants__.js file.

$ mongoimport --db test --collection restaurants --file __restaurants__.js

Yi-Xuan Lau

About

Querying with the MongoDB shell


Languages

Language:JavaScript 100.0%