Querying with the MongoDB shell
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.
To get started import __products__.js
into your MongoDB database with the following command:
$ mongoimport --db test --collection products --file __products__.js
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