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:
parent
91e18dc16b
commit
3eb4295ae9
@ -30,6 +30,7 @@ DBCollection.prototype.help = function(){
|
|||||||
print("DBCollection help");
|
print("DBCollection help");
|
||||||
print("\tdb.foo.count()");
|
print("\tdb.foo.count()");
|
||||||
print("\tdb.foo.dataSize()");
|
print("\tdb.foo.dataSize()");
|
||||||
|
print("\tdb.foo.distinct( key ) - eg. db.foo.distinct( 'x' )" );
|
||||||
print("\tdb.foo.drop() drop the collection");
|
print("\tdb.foo.drop() drop the collection");
|
||||||
print("\tdb.foo.dropIndex(name)");
|
print("\tdb.foo.dropIndex(name)");
|
||||||
print("\tdb.foo.dropIndexes()");
|
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.getDB() get DB object associated with collection");
|
||||||
print("\tdb.foo.getIndexes()");
|
print("\tdb.foo.getIndexes()");
|
||||||
print("\tdb.foo.group( { key : ..., initial: ..., reduce : ...[, cond: ...] } )");
|
print("\tdb.foo.group( { key : ..., initial: ..., reduce : ...[, cond: ...] } )");
|
||||||
|
print("\tdb.foo.mapReduce( mapFunction , reduceFunction , <optional params> )" );
|
||||||
print("\tdb.foo.remove(query)" );
|
print("\tdb.foo.remove(query)" );
|
||||||
print("\tdb.foo.renameCollection( newName ) renames the collection");
|
print("\tdb.foo.renameCollection( newName ) renames the collection");
|
||||||
print("\tdb.foo.save(obj)");
|
print("\tdb.foo.save(obj)");
|
||||||
|
Loading…
Reference in New Issue
Block a user