MongoDatabase.runListCommand

Generic means to run commands on the database.

See http://www.mongodb.org/display/DOCS/Commands for a list of possible values for command_and_options.

Note that some commands return a cursor instead of a single document. In this case, use runListCommand instead of runCommand to be able to properly iterate over the results.

struct MongoDatabase
@safe
MongoCursor!R
runListCommand
(
R = Bson
T
)

Parameters

command_and_options T

Bson object containing the command to be executed as well as the command parameters as fields

Return Value

Type: MongoCursor!R

The raw response of the MongoDB server

Meta