From 047d943e401f11aa125cf498ff864f59726cf983 Mon Sep 17 00:00:00 2001 From: ian fogelman Date: Wed, 13 Oct 2021 11:05:09 -0400 Subject: [PATCH] DOCSP-19047 Add generic message command syntax example --- source/reference/command.txt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/source/reference/command.txt b/source/reference/command.txt index 9c4920add14..8e20098e367 100644 --- a/source/reference/command.txt +++ b/source/reference/command.txt @@ -29,7 +29,22 @@ To run an administrative command against the ``admin`` database, use :method:`db db.adminCommand( { } ) -.. include:: /includes/extracts/commands-toc-explanation.rst +.. note:: + + For details on specific commands, including syntax and examples, + click on the specific command to go to its reference page. + +Command Syntax +-------------- + +When you run a database command, you specify the command as a document +to :method:`db.runCommand()`. The document's key is the command to run, +and the value is typically supplied as ``1``. The value does not affect +the output of the command for example: + +.. code-block:: javascript + + db.runCommand( { hello: 1 } ) User Commands -------------