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