Fix This Page
Navigation

sh._adminCommand()

On this page

Definition

sh._adminCommand(command, checkMongos)

Runs a database command against the admin database of a mongos instance.

Parameter Type Description
command string A database command to run against the admin database.
checkMongos boolean Require verification that the shell is connected to a mongos instance.

See also

db.runCommand()