Skip to content

Commit bf5fbac

Browse files
committed
vale
1 parent 6ef8793 commit bf5fbac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/aggregation/agg-exp-ops.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ in your code:
4848
import com.mongodb.client.model.Filters
4949
import com.mongodb.client.model.mql.MqlValues
5050

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
5454
field, you must use the appropriately typed method, such as
5555
``getString()`` or ``getDate()``. When you specify the type for a field,
5656
you ensure that the driver provides only those methods which are
@@ -72,7 +72,7 @@ value of ``1.0``:
7272
of(1.0)
7373

7474
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.
7676

7777
The following example creates an operation to find patients in New
7878
Mexico who have visited the doctor’s office at least once. The operation
@@ -204,7 +204,7 @@ expected parameters and implementation.
204204
.. important::
205205

206206
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
208208
aggregation, you must define the entire expression using the BSON ``Document``
209209
type.
210210

@@ -395,7 +395,7 @@ with ``lt()``. The ``project()`` method stores these filtered results as a new
395395
.. tip::
396396

397397
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
399399
array as their specific type.
400400

401401
In this example, we specify that the ``seats`` array contains values
@@ -629,7 +629,7 @@ You can apply custom functions to values of type
629629
``MqlValue`` using the methods described in this section.
630630

631631
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
633633
static methods in {+language+}. The ``passTo()`` method lets you chain values
634634
into custom static methods.
635635

@@ -654,7 +654,7 @@ into custom static methods.
654654

655655
- *No corresponding operator*
656656

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
658658
benchmarks. You want to find the average final grade for each class and
659659
compare it against the benchmark values.
660660

0 commit comments

Comments
 (0)