@@ -31,7 +31,7 @@ Consider the ``users`` collection in the `Mflix Sample Database
31
31
<https://www.mongodb.com/docs/atlas/sample-data/sample-mflix/#sample_mflix.users>`__.
32
32
Each document in the collection has the following structure:
33
33
34
- .. code-block:: javascript
34
+ .. code-block:: none
35
35
:copyable: false
36
36
37
37
{
@@ -48,7 +48,7 @@ collection, you can ask the GitHub Copilot chat to generate a query that
48
48
finds the document in the ``users`` collection that has the ``name``
49
49
value of ``Kayden Washington``.
50
50
51
- .. code-block:: javascript
51
+ .. code-block:: none
52
52
:copyable: false
53
53
54
54
@MongoDB /query In the sample_mflix database, find a document in the
@@ -57,7 +57,7 @@ value of ``Kayden Washington``.
57
57
The GitHub Copilot Chat uses the |copilot| to
58
58
generate the following query using knowledge of your database schema:
59
59
60
- .. code-block:: javascript
60
+ .. code-block:: none
61
61
62
62
use(`sample_mflix`);
63
63
db.getCollection('users').findOne({ name: 'Kayden Washington' });
@@ -77,7 +77,7 @@ the ``users`` collection in the `Mflix Sample Database
77
77
<https://www.mongodb.com/docs/atlas/sample-data/sample-mflix/#sample_mflix.users>`__.
78
78
Each document in the collection has the following structure:
79
79
80
- .. code-block:: javascript
80
+ .. code-block:: none
81
81
:copyable: false
82
82
83
83
{
@@ -92,7 +92,7 @@ Each document in the collection has the following structure:
92
92
Once you connect to the deployment that contains the ``users``
93
93
collection, you can ask the GitHub Copilot chat to generate an aggregation pipeline.
94
94
95
- .. code-block:: javascript
95
+ .. code-block:: none
96
96
:copyable: false
97
97
98
98
@MongoDB /query Generate an aggregation pipeline on the users
@@ -101,7 +101,7 @@ collection, you can ask the GitHub Copilot chat to generate an aggregation pipel
101
101
102
102
The |copilot| generates the following aggregation pipeline:
103
103
104
- .. code-block:: javascript
104
+ .. code-block:: none
105
105
106
106
use('sample_mflix');
107
107
db.getCollection('users').aggregate([
@@ -118,7 +118,7 @@ directly or open the pipeline in a playground.
118
118
119
119
You can also iteratively build on your aggregation pipeline:
120
120
121
- .. code-block:: javascript
121
+ .. code-block:: none
122
122
:copyable: false
123
123
124
124
@MongoDB /query Add a stage to my pipeline that adds a username field
@@ -127,7 +127,7 @@ You can also iteratively build on your aggregation pipeline:
127
127
128
128
The |copilot| returns the following aggregation pipeline:
129
129
130
- .. code-block:: javascript
130
+ .. code-block:: none
131
131
132
132
use('sample_mflix');
133
133
db.getCollection('users').aggregate([
0 commit comments