diff --git a/source/reference/versioned-api.txt b/source/reference/versioned-api.txt index 5ae5c60bfad..f4dd288c3b8 100644 --- a/source/reference/versioned-api.txt +++ b/source/reference/versioned-api.txt @@ -231,8 +231,8 @@ documents. Since the :dbcommand:`count` command does not belong to the Versioned API, this application cannot use the Versioned API until the :dbcommand:`count` command is removed from the code. -You can use the sample code below to create a ``sales`` collection to -follow along: +Use the sample MQL (MongoDB Query Language) code to create a ``sales`` +collection in :mongosh:`mongosh `: .. code-block:: javascript @@ -264,7 +264,8 @@ For example, issuing ``db.sales.count()`` results in this error: However, the :dbcommand:`aggregate` command is :ref:`in the Versioned API ` and can be used to -obtain a count in the following way: +obtain a count. Use the sample MQL (MongoDB Query Language) code to +obtain a count from the ``sales`` collection in :mongosh:`mongosh `: .. code-block:: javascript