0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

more help MINOR

This commit is contained in:
Eliot Horowitz 2009-09-10 10:40:38 -04:00
parent bbc07f85ec
commit 236f13cec5

View File

@ -30,7 +30,7 @@ DBCollection.prototype.help = function(){
print("DBCollection help");
print("\tdb.foo.getDB() get DB object associated with collection");
print("\tdb.foo.findOne(...)");
print("\tdb.foo.find(...)");
print("\tdb.foo.find( [{..}] , [{...}]) - first parameters is an optional filter, 2nd paramter is optional and what fields to return. db.foo.find( { x : 1 } , { name : 1 , x : 1 } )");
print("\tdb.foo.find(...).sort(...)");
print("\tdb.foo.find(...).limit(n)");
print("\tdb.foo.find(...).skip(n)");