Friday, January 23, 2015

M101JS: MongoDB for Node.js Developers - Homework 1.1

M101JS: MongoDB for Node.js Developers

HomeWork 1.1: you need to import handout material using mongo restore

  • Download the HomeWork Material.
  • unzip or untar the above folder
  • go to terminal or cmd with unzip path 
  • type mongorestore dump
  • note: dump is  folder name
  • after running the command you will upload all the bson data into mongo.
Now To validate your answer type in cmd:
>  use hw1_1
> db.hw1_1.findone()
>Output:

{
        "_id" : ObjectId("51e4524ef3651c651a42331c"),
        "answer" : "Hello from MongoDB!"
}

so your first week answer is

 Hello from MongoDB!


No comments:

Post a Comment