Skip to content

Commit

Permalink
Update by rewrite version of sample.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-iida committed May 11, 2011
1 parent 3f4a829 commit b172b8a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sample.js
Expand Up @@ -20,7 +20,6 @@ for(idx = 0; idx < 10; idx++) {
collection.insert(createDoc(idx));
}

// var document = BSON.from(collection.find());
var documents = collection.find();

while(documents.hasNext()) {
Expand All @@ -36,14 +35,4 @@ while(documents.hasNext()) {
System.out.println("");
}




// Print them all.
//while(documents.hasNext()) {
// var object = BSON.from(documents.next());
// System.out.print("name = " + object.name);
// System.out.print(", age = " + object.age);
// System.out.println(", '" + eval(object.sayName)() + "'");
//}
// -- End of script.

0 comments on commit b172b8a

Please sign in to comment.