learnyoumongo
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -98,1 +98,5 @@ Next up is aggregation. Aggregation allows one to do things like | ||
have finished. | ||
## Resources | ||
* http://docs.mongodb.org/manual/aggregation/ | ||
* http://docs.mongodb.org/manual/core/aggregation-introduction/ |
var mongo = require('mongodb').MongoClient | ||
var age = process.argv[2] | ||
var size = process.argv[2] | ||
@@ -11,3 +11,3 @@ var url = 'mongodb://localhost:27017/learnyoumongo' | ||
{ $match: { | ||
size: process.argv[2] | ||
size: size | ||
}} | ||
@@ -14,0 +14,0 @@ , { $group: { |
@@ -14,5 +14,7 @@ Start mongod on port `27017` with `data` as the dbpath | ||
Then, in another terminal, run `learnyoumongo verify`. | ||
Then, in another terminal, run `npm install mongodb`. | ||
Then, run `learnyoumongo verify`. | ||
If this lesson is passed, be sure to leave `mongod` running as it will | ||
be used for the remainder of the exercise. |
@@ -28,1 +28,4 @@ Here we will learn how to count the number of documents that | ||
have finished. | ||
## Resource | ||
* http://docs.mongodb.org/manual/reference/command/count/ |
@@ -36,1 +36,4 @@ Here we will learn how to search for documents but only fetch the fields | ||
have finished. | ||
## Resource: | ||
* http://docs.mongodb.org/manual/reference/method/db.collection.find/#explicitly-exclude-the-id-field |
@@ -29,2 +29,4 @@ Here we will learn how to search for documents. | ||
Keep in mind, `process.argv` is an array of strings. To convert to an integer, you could use parseInt() | ||
Here is an example: | ||
@@ -43,1 +45,5 @@ | ||
have finished. | ||
## Resources: | ||
* http://docs.mongodb.org/manual/reference/method/db.collection.find/ | ||
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt |
@@ -59,1 +59,4 @@ Connect to MongoDB on port `27017`. | ||
have finished. | ||
## Resource | ||
* http://docs.mongodb.org/manual/reference/method/db.collection.insert/ |
@@ -26,1 +26,4 @@ This lesson involves removing a document with the given `_id`. | ||
have finished. | ||
## Resource | ||
* http://docs.mongodb.org/manual/reference/method/db.collection.remove/ |
@@ -46,1 +46,5 @@ Here we are going to update a document in the `users` collection. | ||
have finished. | ||
## Resources | ||
* http://docs.mongodb.org/manual/tutorial/modify-documents/ | ||
* http://docs.mongodb.org/manual/reference/operator/update/set/#set |
{ | ||
"name": "learnyoumongo", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Nodeschool workshop for MongoDB", | ||
@@ -5,0 +5,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
69905