Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update by rewrite version of sample.js.

  • Loading branch information...
commit b172b8affd2f87ee9ab2e043b0ed02298481d662 1 parent 3f4a829
@t-iida authored
Showing with 0 additions and 11 deletions.
  1. +0 −11 sample.js
View
11 sample.js
@@ -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()) {
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.