Skip to content

Commit 63af7ae

Browse files
committed
RR feedback
1 parent 23f8928 commit 63af7ae

File tree

2 files changed

+31
-30
lines changed

2 files changed

+31
-30
lines changed

source/read/distinct.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ You can provide a **query filter** to the ``distinct`` command to find the disti
7575
field values across a subset of documents in a collection. A query filter is an expression that specifies search
7676
criteria used to match documents in an operation.
7777

78-
For more information about creating a query filter, see :ref:`c-specify-query`.
78+
To learn more about creating query filters, see :ref:`c-specify-query`.
7979

8080
The following example retrieves the distinct values of the ``borough`` field for
8181
all documents that have a ``cuisine`` field value of ``"Italian"``:

source/read/specify-a-query.txt

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ Exact Match
4343
Literal value queries return documents with an exact match to your query filter.
4444

4545
The following example specifies a query filter as a parameter to the ``mongoc_collection_find_with_opts()``
46-
function. The code returns all documents with a ``type`` field value of ``"movie"``.
46+
function. The code returns all documents in which the value of the ``type`` field
47+
is ``"movie"``.
4748

4849
.. io-code-block::
4950
:copyable: true
@@ -78,8 +79,8 @@ To view a full list of comparison operators, see the :manual:`Comparison Query O
7879
</reference/operator/query-comparison/>` guide in the MongoDB Server manual.
7980

8081
The following example specifies a comparison operator in a query filter as a
81-
parameter to the ``mongoc_collection_find_with_opts()`` function. The code returns all documents with a
82-
``year`` field value greater than ``2015``.
82+
parameter to the ``mongoc_collection_find_with_opts()`` function. The code returns all documents
83+
in which the value of the ``year`` field is greater than ``2015``.
8384

8485
.. io-code-block::
8586
:copyable: true
@@ -93,7 +94,7 @@ parameter to the ``mongoc_collection_find_with_opts()`` function. The code retur
9394
.. output::
9495
:visible: false
9596

96-
{ "_id" : { "$oid" : "..." }, "title" : "The Masked Saint", "year" : { "$numberInt" : "2016" }, ... }
97+
{ "_id" : ..., "title" : "The Masked Saint", "year" : { "$numberInt" : "2016" }, ... }
9798

9899
Logical Operators
99100
-----------------
@@ -111,7 +112,7 @@ To learn more about logical operators, see the :manual:`Logical Query Operators
111112

112113
The following example specifies a logical operator in a query filter as a
113114
parameter to the ``mongoc_collection_find_with_opts()`` function. The code returns all
114-
documents with a ``year`` field value of ``1983`` **or** ``1985``.
115+
documents in which the value of the ``year`` field is ``1983`` **or** ``1985``.
115116

116117
.. io-code-block::
117118
:copyable: true
@@ -125,11 +126,11 @@ documents with a ``year`` field value of ``1983`` **or** ``1985``.
125126
.. output::
126127
:visible: false
127128

128-
{ "_id" : { "$oid" : "..." }, "title" : "Amityville 3-D", "year" : { "$numberInt" : "1983" }, ... }
129-
{ "_id" : { "$oid" : "..." }, "title" : "Barefoot Gen", "year" : { "$numberInt" : "1983" }, ... }
130-
{ "_id" : { "$oid" : "..." }, "title" : "Betrayal", "year" : { "$numberInt" : "1983" }, ... }
131-
{ "_id" : { "$oid" : "..." }, "title" : "You're a Good Man, Charlie Brown", "year" : { "$numberInt" : "1985" }, ... }
132-
{ "_id" : { "$oid" : "..." }, "title" : "Yes: 9012 Live", "year" : { "$numberInt" : "1985" }, ... }
129+
{ "_id" : ..., "title" : "Amityville 3-D", "year" : { "$numberInt" : "1983" }, ... }
130+
{ "_id" : ..., "title" : "Barefoot Gen", "year" : { "$numberInt" : "1983" }, ... }
131+
{ "_id" : ..., "title" : "Betrayal", "year" : { "$numberInt" : "1983" }, ... }
132+
{ "_id" : ..., "title" : "You're a Good Man, Charlie Brown", "year" : { "$numberInt" : "1985" }, ... }
133+
{ "_id" : ..., "title" : "Yes: 9012 Live", "year" : { "$numberInt" : "1985" }, ... }
133134
...
134135

135136
Array Operators
@@ -146,8 +147,8 @@ To learn more about array operators, see the :manual:`Array Query Operators
146147
</reference/operator/query-array/>` guide in the MongoDB Server manual.
147148

148149
The following example specifies an array operator in a query filter as a
149-
parameter to the ``mongoc_collection_find_with_opts()`` function. The code returns all documents with a
150-
``genres`` array field containing exactly ``2`` elements.
150+
parameter to the ``mongoc_collection_find_with_opts()`` function. The code returns all
151+
documents in which the value of the ``genres`` array field contains exactly ``2`` elements.
151152

152153
.. io-code-block::
153154
:copyable: true
@@ -161,11 +162,11 @@ parameter to the ``mongoc_collection_find_with_opts()`` function. The code retur
161162
.. output::
162163
:visible: false
163164

164-
{ "_id" : { "$oid" : "..." }, "genres" : [ "Comedy", "Romance" ], "title" : "The Devil to Pay!", ... }
165-
{ "_id" : { "$oid" : "..." }, "genres" : [ "Crime", "Drama" ], "title" : "Traffic in Souls", ... }
166-
{ "_id" : { "$oid" : "..." }, "genres" : [ "Comedy", "Short" ], "title" : "High and Dizzy", ... }
167-
{ "_id" : { "$oid" : "..." }, "genres" : [ "Comedy", "Short" ], "title" : "Now or Never", ... }
168-
{ "_id" : { "$oid" : "..." }, "genres" : [ "Drama", "Romance" ], "title" : "A Woman of Paris: A Drama of Fate", ... }
165+
{ "_id" : ..., "genres" : [ "Comedy", "Romance" ], "title" : "The Devil to Pay!", ... }
166+
{ "_id" : ..., "genres" : [ "Crime", "Drama" ], "title" : "Traffic in Souls", ... }
167+
{ "_id" : ..., "genres" : [ "Comedy", "Short" ], "title" : "High and Dizzy", ... }
168+
{ "_id" : ..., "genres" : [ "Comedy", "Short" ], "title" : "Now or Never", ... }
169+
{ "_id" : ..., "genres" : [ "Drama", "Romance" ], "title" : "A Woman of Paris: A Drama of Fate", ... }
169170
...
170171

171172
Element Operators
@@ -192,11 +193,11 @@ documents that have a ``num_mflix_comments`` field.
192193
.. output::
193194
:visible: false
194195

195-
{ "_id" : { "$oid" : "..." }, "num_mflix_comments" : { "$numberInt" : "0" }, "title" : "The Park Is Mine", ...}
196-
{ "_id" : { "$oid" : "..." }, "num_mflix_comments" : { "$numberInt" : "1" }, "title" : "The Good Father", ... }
197-
{ "_id" : { "$oid" : "..." }, "num_mflix_comments" : { "$numberInt" : "0" }, "title" : "Alpine Fire", ... }
198-
{ "_id" : { "$oid" : "..." }, "num_mflix_comments" : { "$numberInt" : "1" }, "title" : "Huang jia shi jie", ... }
199-
{ "_id" : { "$oid" : "..." }, "num_mflix_comments" : { "$numberInt" : "0" }, "title" : "Twenty Years Later", ... }
196+
{ "_id" : ..., "num_mflix_comments" : { "$numberInt" : "0" }, "title" : "The Park Is Mine", ...}
197+
{ "_id" : ..., "num_mflix_comments" : { "$numberInt" : "1" }, "title" : "The Good Father", ... }
198+
{ "_id" : ..., "num_mflix_comments" : { "$numberInt" : "0" }, "title" : "Alpine Fire", ... }
199+
{ "_id" : ..., "num_mflix_comments" : { "$numberInt" : "1" }, "title" : "Huang jia shi jie", ... }
200+
{ "_id" : ..., "num_mflix_comments" : { "$numberInt" : "0" }, "title" : "Twenty Years Later", ... }
200201
...
201202

202203
Evaluation Operators
@@ -218,7 +219,7 @@ To view a full list of evaluation operators, see the :manual:`Evaluation Query O
218219

219220
The following example specifies an evaluation operator in a query filter as a
220221
parameter to the ``mongoc_collection_find_with_opts()`` function. The code uses a regular
221-
expression to return all documents with a ``title`` field value that has at least two
222+
expression to return all documents in which the value of the ``title`` field has at least two
222223
consecutive ``"p"`` characters.
223224

224225
.. io-code-block::
@@ -233,11 +234,11 @@ consecutive ``"p"`` characters.
233234
.. output::
234235
:visible: false
235236

236-
{ "_id" : { "$oid" : "..." }, "title" : "He Who Gets Slapped", ... }
237-
{ "_id" : { "$oid" : "..." }, "title" : "David Copperfield", ... }
238-
{ "_id" : { "$oid" : "..." }, "title" : "Applause", ... }
239-
{ "_id" : { "$oid" : "..." }, "title" : "Skippy", ... }
240-
{ "_id" : { "$oid" : "..." }, "title" : "This Happy Breed", ... }
237+
{ "_id" : ..., "title" : "He Who Gets Slapped", ... }
238+
{ "_id" : ..., "title" : "David Copperfield", ... }
239+
{ "_id" : ..., "title" : "Applause", ... }
240+
{ "_id" : ..., "title" : "Skippy", ... }
241+
{ "_id" : ..., "title" : "This Happy Breed", ... }
241242
...
242243

243244
Additional Information
@@ -246,7 +247,7 @@ Additional Information
246247
To learn more about querying documents, see the :manual:`Query Documents
247248
</tutorial/query-documents/>` guide in the MongoDB Server manual.
248249

249-
To learn more about retrieving documents with the {+driver-short+}, see
250+
To learn more about using the {+driver-short+} to retrieve documents, see
250251
:ref:`c-retrieve`.
251252

252253
API Documentation

0 commit comments

Comments
 (0)