翻译或纠错本页面

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.