Skip to content

johnfig14/mongodb-restaurants

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restaurants Exercise

Inserting a new Restaurant

Use the documation for MongoDB's insert to insert your favorite restaurant. The json for the object looks like this:

Restaurant JSON

{
	"address" : {
    	"street" : "",
        "zipcode" : "",
         "building" : "",
         "coord" : [  ]
      },
      "borough" : "",
      "cuisine" : "",
      "grades" : [
         {
            "date" : ISODate("2014-10-01T00:00:00Z"),
            "grade" : "",
            "score" : 
         }
      ],
      "name" : ""
   }
}

Observe what type of infomration is returned from an insert statement? Fill in the code in the insert.js file. Return the results of the insert statement.

Query your favorite restaurant by their name.

Open up the query.js file and fill in the query for the findByName(name).

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%