From c7e2947f7eecc39ecfc91a991e58990f49c2eaa8 Mon Sep 17 00:00:00 2001 From: Joseph Dougherty Date: Tue, 13 Jul 2021 14:39:29 -0400 Subject: [PATCH] DOCSP-17554 distinguish shell examples from driver examples on Versioned API page --- source/reference/versioned-api.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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