@@ -48,9 +48,9 @@ in your code:
48
48
import com.mongodb.client.model.Filters
49
49
import com.mongodb.client.model.mql.MqlValues
50
50
51
- To access document fields in an expression, you need to reference the
52
- current document being processed by the aggregation pipeline. Use the
53
- ``current()`` method to refer to this document . To access the value of a
51
+ To access document fields in an expression, you must reference the
52
+ current document being processed by the aggregation pipeline by using the
53
+ ``current()`` method. To access the value of a
54
54
field, you must use the appropriately typed method, such as
55
55
``getString()`` or ``getDate()``. When you specify the type for a field,
56
56
you ensure that the driver provides only those methods which are
@@ -72,7 +72,7 @@ value of ``1.0``:
72
72
of(1.0)
73
73
74
74
To create an operation, chain a method to your field or value reference.
75
- You can build more complex operations by chaining additional methods.
75
+ You can build more complex operations by chaining other methods.
76
76
77
77
The following example creates an operation to find patients in New
78
78
Mexico who have visited the doctor’s office at least once. The operation
@@ -204,7 +204,7 @@ expected parameters and implementation.
204
204
.. important::
205
205
206
206
The driver does not provide methods for all aggregation pipeline operators in
207
- the Query API. If you need to use an unsupported operation in an
207
+ the Query API. To use an unsupported operation in an
208
208
aggregation, you must define the entire expression using the BSON ``Document``
209
209
type.
210
210
@@ -395,7 +395,7 @@ with ``lt()``. The ``project()`` method stores these filtered results as a new
395
395
.. tip::
396
396
397
397
You must specify the type of the array that you retrieve with the
398
- ``getArray()`` method if you need to work with the values of the
398
+ ``getArray()`` method if you work with the values of the
399
399
array as their specific type.
400
400
401
401
In this example, we specify that the ``seats`` array contains values
@@ -629,7 +629,7 @@ You can apply custom functions to values of type
629
629
``MqlValue`` using the methods described in this section.
630
630
631
631
To improve readability and allow for code reuse, you can move redundant
632
- code into static methods. However, it is not possible to directly chain
632
+ code into static methods. However, you cannot directly chain
633
633
static methods in {+language+}. The ``passTo()`` method lets you chain values
634
634
into custom static methods.
635
635
@@ -654,7 +654,7 @@ into custom static methods.
654
654
655
655
- *No corresponding operator*
656
656
657
- Suppose you need to determine how a class is performing against some
657
+ Suppose you want to determine how a class is performing against some
658
658
benchmarks. You want to find the average final grade for each class and
659
659
compare it against the benchmark values.
660
660
0 commit comments