sh._adminCommand()

sh._adminCommand(cmd, checkMongos)
参数:
  • dbcommand (string) – A database command to run against the admin database.
  • checkMongos (Boolean) – Verify whether or not the shell is connected to a mongos instance.

The sh._adminCommand method runs a database command against the admin database of a mongos instance.

也可以参考

db.runCommand()

MongoDB Manual (Index)

关于

生态系统

格式

资源