OPTIONS

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()

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.