@@ -20,9 +20,9 @@ return.
20
20
21
21
.. |query_operations| replace:: query operations with projection
22
22
23
- .. include:: /includes/driver-example-query-intro.rst
23
+ .. include:: /includes/driver-examples/driver- example-query-intro.rst
24
24
25
- .. include:: /includes/driver-example-query-42.rst
25
+ .. include:: /includes/driver-examples/driver- example-query-42.rst
26
26
27
27
Return All Fields in Matching Documents
28
28
---------------------------------------
@@ -98,7 +98,7 @@ Return All Fields in Matching Documents
98
98
The following example returns all fields from all documents in the
99
99
``inventory`` collection where the ``status`` equals ``"A"``:
100
100
101
- .. include:: /includes/driver-example-query-43.rst
101
+ .. include:: /includes/driver-examples/driver- example-query-43.rst
102
102
103
103
The operation corresponds to the following SQL statement:
104
104
@@ -115,7 +115,7 @@ operation returns all documents that match the query. In the result
115
115
set, only the ``item``, ``status`` and, by default, the ``_id`` fields
116
116
return in the matching documents.
117
117
118
- .. include:: /includes/driver-example-query-44.rst
118
+ .. include:: /includes/driver-examples/driver- example-query-44.rst
119
119
120
120
The operation corresponds to the following SQL statement:
121
121
@@ -130,7 +130,7 @@ You can remove the ``_id`` field from the results by setting its
130
130
exclusion ``<field>`` to ``0`` in the projection, as in the
131
131
following example:
132
132
133
- .. include:: /includes/driver-example-query-45.rst
133
+ .. include:: /includes/driver-examples/driver- example-query-45.rst
134
134
135
135
The operation corresponds to the following SQL statement:
136
136
@@ -146,7 +146,7 @@ can use a projection to exclude specific fields. The following example
146
146
which returns all fields except for the ``status`` and the ``instock``
147
147
fields in the matching documents:
148
148
149
- .. include:: /includes/driver-example-query-46.rst
149
+ .. include:: /includes/driver-examples/driver- example-query-46.rst
150
150
151
151
.. note::
152
152
@@ -169,7 +169,7 @@ The following example returns:
169
169
170
170
The ``uom`` field remains embedded in the ``size`` document.
171
171
172
- .. include:: /includes/driver-example-query-47.rst
172
+ .. include:: /includes/driver-examples/driver- example-query-47.rst
173
173
174
174
Suppress Specific Fields in Embedded Documents
175
175
----------------------------------------------
@@ -182,7 +182,7 @@ The following example specifies a projection to exclude the ``uom``
182
182
field inside the ``size`` document. All other fields are returned in
183
183
the matching documents:
184
184
185
- .. include:: /includes/driver-example-query-48.rst
185
+ .. include:: /includes/driver-examples/driver- example-query-48.rst
186
186
187
187
Projection on Embedded Documents in an Array
188
188
--------------------------------------------
@@ -197,7 +197,7 @@ The following example specifies a projection to return:
197
197
- The ``status`` field,
198
198
- The ``qty`` field in the documents embedded in the ``instock`` array.
199
199
200
- .. include:: /includes/driver-example-query-49.rst
200
+ .. include:: /includes/driver-examples/driver- example-query-49.rst
201
201
202
202
Project Specific Array Elements in the Returned Array
203
203
-----------------------------------------------------
@@ -211,7 +211,7 @@ Project Specific Array Elements in the Returned Array
211
211
212
212
.. include:: /includes/fact-projection-slice-example.rst
213
213
214
- .. include:: /includes/driver-example-query-50.rst
214
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
215
215
216
216
:projection:`$elemMatch`, :projection:`$slice`, and
217
217
:projection:`$` are the *only* way to project specific elements
@@ -235,7 +235,7 @@ Project Specific Array Elements in the Returned Array
235
235
236
236
.. include:: /includes/fact-projection-slice-example.rst
237
237
238
- .. include:: /includes/driver-example-query-50.rst
238
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
239
239
240
240
:projection:`$elemMatch`, :projection:`$slice`, and
241
241
:projection:`$` are the *only* way to project specific elements
@@ -250,7 +250,7 @@ Project Specific Array Elements in the Returned Array
250
250
251
251
.. include:: /includes/fact-projection-slice-example.rst
252
252
253
- .. include:: /includes/driver-example-query-50.rst
253
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
254
254
255
255
:projection:`$elemMatch`, :projection:`$slice`, and
256
256
:projection:`$` are the *only* way to project specific elements
@@ -265,7 +265,7 @@ Project Specific Array Elements in the Returned Array
265
265
266
266
.. include:: /includes/fact-projection-slice-example.rst
267
267
268
- .. include:: /includes/driver-example-query-50.rst
268
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
269
269
270
270
:projection:`$elemMatch`, :projection:`$slice`, and
271
271
:projection:`$` are the *only* way to project specific elements
@@ -280,7 +280,7 @@ Project Specific Array Elements in the Returned Array
280
280
281
281
.. include:: /includes/fact-projection-slice-example.rst
282
282
283
- .. include:: /includes/driver-example-query-50.rst
283
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
284
284
285
285
:projection:`$elemMatch`, :projection:`$slice`, and
286
286
:projection:`$` are the *only* way to project specific elements
@@ -295,7 +295,7 @@ Project Specific Array Elements in the Returned Array
295
295
296
296
.. include:: /includes/fact-projection-slice-example.rst
297
297
298
- .. include:: /includes/driver-example-query-50.rst
298
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
299
299
300
300
:projection:`$elemMatch`, :projection:`$slice`, and
301
301
:projection:`$` are the *only* way to project specific elements
@@ -310,7 +310,7 @@ Project Specific Array Elements in the Returned Array
310
310
311
311
.. include:: /includes/fact-projection-slice-example.rst
312
312
313
- .. include:: /includes/driver-example-query-50.rst
313
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
314
314
315
315
:projection:`$elemMatch`, :projection:`$slice`, and
316
316
:projection:`$` are the *only* way to project specific elements
@@ -325,7 +325,7 @@ Project Specific Array Elements in the Returned Array
325
325
326
326
.. include:: /includes/fact-projection-slice-example.rst
327
327
328
- .. include:: /includes/driver-example-query-50.rst
328
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
329
329
330
330
:projection:`$elemMatch`, :projection:`$slice`, and
331
331
:projection:`$` are the *only* way to project specific elements
@@ -340,7 +340,7 @@ Project Specific Array Elements in the Returned Array
340
340
341
341
.. include:: /includes/fact-projection-slice-example.rst
342
342
343
- .. include:: /includes/driver-example-query-50.rst
343
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
344
344
345
345
:projection:`$elemMatch`, :projection:`$slice`, and
346
346
:projection:`$` are the *only* way to project specific elements
@@ -355,7 +355,7 @@ Project Specific Array Elements in the Returned Array
355
355
356
356
.. include:: /includes/fact-projection-slice-example.rst
357
357
358
- .. include:: /includes/driver-example-query-50.rst
358
+ .. include:: /includes/driver-examples/driver- example-query-50.rst
359
359
360
360
:projection:`$elemMatch`, :projection:`$slice`, and
361
361
:projection:`$` are the *only* way to project specific elements
0 commit comments