Skip to content

Commit 270dc4e

Browse files
committed
DOCSP-43493 adding agg pipeline example
1 parent 1ebb8ce commit 270dc4e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

source/copilot-query.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Each document in the collection has the following structure:
4747
Once you connect to the deployment that contains the ``users``
4848
collection, you can ask the Github Copilot chat to generate a query that
4949
finds the document in the ``users`` collection that has the ``name``
50-
value of `` "Kayden Washington"``.
50+
value of ``Kayden Washington``.
5151

5252
.. code-block:: javascript
5353
:copyable: false
@@ -89,7 +89,9 @@ collection, you can ask the Github Copilot chat to generate an aggregation pipel
8989
.. code-block:: javascript
9090
:copyable: false
9191

92-
@MongoDB /query Generate an aggregation pipeline on the users collection that first sorts documents alphabetically by name and then removes the password field from each document.
92+
@MongoDB /query Generate an aggregation pipeline on the users
93+
collection that first sorts documents alphabetically by name and then
94+
removes the password field from each document.
9395

9496
The |copilot| generates the following aggregation pipeline:
9597

@@ -107,7 +109,9 @@ You can also iteratively build on your aggregation pipeline.
107109
.. code-block:: javascript
108110
:copyable: false
109111

110-
@MongoDB /query Add a stage to my pipeline that adds a username field ot each document containing the user's email username without the email domain.
112+
@MongoDB /query Add a stage to my pipeline that adds a username field
113+
of each document containing the user's email username without the
114+
email domain.
111115

112116
The |copilot| returns the following aggregation pipeline:
113117

0 commit comments

Comments
 (0)