(string) The name of the database upon which to perform the
command.
cmdstr
(string) The name of the command.
arg
An argument to the command, may be a string or numeric
(as.integer).
Value
NULL if the command failed. Use mongo.get.last.err()
to determine the cause.(mongo.bson) The server's response if successful.
Details
This function supports many of the MongoDB database commands by allowing you
to specify a simple command object which is entirely specified by the
command name and an integer or string argument.