forked from mongodb-labs/sleepy.mongoose
-
Notifications
You must be signed in to change notification settings - Fork 1
Database Commands
kchodorow edited this page Sep 14, 2010
·
2 revisions
http://localhost:27080/dbname/_cmd
Runs a database command.
POST
-
cmd=cmd_obj
(object)
Returns the database response.
Drop the ‘bar’ collection in the ‘foo’ database:
$ curl --data 'cmd={"drop" : "bar"}' 'http://localhost:27080/foo/_cmd'
$ curl --data 'cmd={"group" : {"ns" : "geo", "$reduce" : "function(obj, prev) {}", "key" : {"x" : 1}, "initial" : {"count":0}}}' http://localhost:27080/test/_cmd