Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions source/reference/versioned-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 <api-v1-command-list>` 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

Expand Down