@@ -22,14 +22,14 @@ Query an Array of Embedded Documents
22
22
:backlinks: none
23
23
:depth: 1
24
24
25
- ----------
25
+ You can query documents in MongoDB by using the following
26
+ methods:
26
27
27
- .. |arrow| unicode :: U+27A4
28
+ .. |atlas-ref| replace :: :ref:`query-array-documents-atlas-ui`
28
29
29
- |arrow| Use the **Select your language** drop-down menu in the
30
- upper-right to set the language of the following examples.
30
+ .. include:: /includes/fact-methods.rst
31
31
32
- ----------
32
+ .. include:: /includes/language-selector-instructions.rst
33
33
34
34
.. tabs-selector:: drivers
35
35
@@ -140,6 +140,40 @@ to ``A``:
140
140
141
141
.. include:: /includes/driver-examples/driver-example-query-37.rst
142
142
143
+ .. _query-array-documents-atlas-ui:
144
+
145
+ Query an Array of Documents with {+atlas+}
146
+ ---------------------------------------------------
147
+
148
+ The example in this section uses the :atlas:`sample training dataset
149
+ </sample-data/sample-training/>`. To learn how to load the sample
150
+ dataset into your {+atlas+} deployment, see :atlas:`Load Sample Data
151
+ </sample-data/#std-label-load-sample-data>`.
152
+
153
+ To query an array of documents in {+atlas+}, follow these steps:
154
+
155
+ .. procedure::
156
+ :style: normal
157
+
158
+ .. step:: Navigate to the collection
159
+
160
+ .. include:: /includes/steps-nav-atlas-sample-grades.rst
161
+
162
+ .. step:: Specify the Filter field
163
+
164
+ .. include:: /includes/steps-specify-query-filter.rst
165
+
166
+ .. code-block:: javascript
167
+
168
+ { scores: { type: "exam" } }
169
+
170
+ .. step:: Click :guilabel:`Apply`
171
+
172
+ This query filter returns all documents
173
+ in the ``sample_training.grades`` collection where the ``scores``
174
+ field contains an ``exam`` score type.
175
+
176
+
143
177
Additional Query Tutorials
144
178
--------------------------
145
179
0 commit comments