Docs HomeMongoDB Manual

listCommands

On this page本页内容

Definition

listCommands

The listCommands command generates a list of all database commands implemented for the current mongod or mongos instance.

Syntax

The command has the following syntax:

db.runCommand(
{
listCommands: 1
}
)