0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

helpers for distinct/mapReduce

This commit is contained in:
Eliot Horowitz 2009-10-27 11:52:37 -04:00
parent 91e18dc16b
commit 3eb4295ae9

View File

@ -30,6 +30,7 @@ DBCollection.prototype.help = function(){
print("DBCollection help");
print("\tdb.foo.count()");
print("\tdb.foo.dataSize()");
print("\tdb.foo.distinct( key ) - eg. db.foo.distinct( 'x' )" );
print("\tdb.foo.drop() drop the collection");
print("\tdb.foo.dropIndex(name)");
print("\tdb.foo.dropIndexes()");
@ -44,6 +45,7 @@ DBCollection.prototype.help = function(){
print("\tdb.foo.getDB() get DB object associated with collection");
print("\tdb.foo.getIndexes()");
print("\tdb.foo.group( { key : ..., initial: ..., reduce : ...[, cond: ...] } )");
print("\tdb.foo.mapReduce( mapFunction , reduceFunction , <optional params> )" );
print("\tdb.foo.remove(query)" );
print("\tdb.foo.renameCollection( newName ) renames the collection");
print("\tdb.foo.save(obj)");