@@ -24,13 +24,13 @@ Overview
2424--------
2525
2626This section includes guides on how to use each of the available
27- builders and demonstrates the utility that the {+driver-short} builder
27+ builders and demonstrates the utility that the {+driver-short+ } builder
2828classes provide.
2929
30- The {+driver-short} provides classes to simplify the process of
31- performing CRUD operations and the Aggregation API. The static utility
32- methods allow you to build queries and other kinds of documents more
33- efficiently.
30+ The {+driver-short+ } provides classes to simplify the process of
31+ performing CRUD operations and using the Aggregation API. The static
32+ utility methods allow you to build queries and other kinds of documents
33+ more efficiently.
3434
3535Why Use Builders?
3636-----------------
@@ -46,10 +46,10 @@ the MongoDB shell or plain {+language+} instead, you write operators as
4646strings and get no visual indication of a problem, which pushes these
4747errors to runtime instead of compile time.
4848
49- By using builder classes, you cab write operators as methods. The IDE
50- instantly indicates whether your code has errors. While developing, the
51- IDE also shows you the methods you can use and can complete your code with
52- placeholder parameters.
49+ By using builder classes, you can write operators as methods, so that
50+ your IDE instantly indicates whether your code has errors. While
51+ developing, your IDE can also show you methods that you can use and can
52+ complete your code with placeholder parameters.
5353
5454Example Scenario
5555----------------
@@ -60,8 +60,7 @@ collection that meet the following criteria:
6060- Users in which the value of the ``gender`` field is ``"female"``
6161- Users in which the value of the ``age`` field is greater than ``29``
6262
63- You only want their email addresses, so your query won't
64- return data that you don't need.
63+ You also need your query to return only their email addresses.
6564
6665The documents in the ``users`` collection are modeled by the following
6766data class:
@@ -88,6 +87,10 @@ builders in the {+driver-short+}:
8887.. literalinclude:: /examples/generated/BuildersTest.snippet.no-builders.kt
8988 :language: kotlin
9089
90+ In this case, you could easily include an error when writing the
91+ ``"\$gt"`` operator in the filter, but you would see an error only at
92+ runtime.
93+
9194Using Builders
9295~~~~~~~~~~~~~~
9396
0 commit comments