@@ -2274,8 +2274,8 @@ a read preference for the operation. As of `featureCompatibilityVersion` 4.4, se
2274
2274
` $out ` or ` $merge ` . Since drivers do not track ` featureCompatibilityVersion ` , the decision to consider a read preference
2275
2275
for such a pipeline will depend on the wire version(s) of the server(s) to which the driver is connected.
2276
2276
2277
- If there are one or more available servers and one or more of those servers is pre-5.0 (i.e. wire version \ < 13),
2278
- drivers MUST NOT use the available read preference and MUST instead select a server using a primary read preference.
2277
+ If there are one or more available servers and one or more of those servers is pre-5.0 (i.e. wire version < 13), drivers
2278
+ MUST NOT use the available read preference and MUST instead select a server using a primary read preference.
2279
2279
2280
2280
Otherwise, if there are either no available servers, all available servers are 5.0+ (i.e. wire version >= 13), or the
2281
2281
topology type is LoadBalanced (we can assume the backing mongos is 5.0+), drivers MUST use the available read
@@ -2438,11 +2438,10 @@ able to be used as this change is non-backwards breaking. Any driver which imple
2438
2438
deprecate it and drivers that have not built it should not do so.
2439
2439
2440
2440
Q: Should drivers offer explain helpers?\
2441
- Originally, it was determined that explain should not be exposed via
2442
- specialized APIs in drivers because it it was deemed to be an unusual use-case for a driver. We'd like users to use the
2443
- shell for this purpose. However, explain is still possible from a driver. Some drivers have historically provided
2444
- explain helpers and continue to do so. Drivers that do not offer explain helpers can run explain commands using the
2445
- runCommand API.
2441
+ Originally, it was determined that explain should not be exposed via specialized APIs in drivers because it it was
2442
+ deemed to be an unusual use-case for a driver. We'd like users to use the shell for this purpose. However, explain is
2443
+ still possible from a driver. Some drivers have historically provided explain helpers and continue to do so. Drivers
2444
+ that do not offer explain helpers can run explain commands using the runCommand API.
2446
2445
2447
2446
Q: What about explain?
2448
2447
@@ -2482,7 +2481,7 @@ release.
2482
2481
Q: Where is ` singleBatch ` in FindOptions?
2483
2482
2484
2483
Drivers have historically allowed users to request a single batch of results (after which the cursor is closed) by
2485
- specifying a negative value for the ` limit ` option. For servers \ < 3.2, a single batch may be requested by specifying a
2484
+ specifying a negative value for the ` limit ` option. For servers < 3.2, a single batch may be requested by specifying a
2486
2485
negative value in the ` numberToReturn ` wire protocol field. For servers >= 3.2, the ` find ` command defines ` limit ` as a
2487
2486
non-negative integer option but introduces a ` singleBatch ` boolean option. Rather than introduce a ` singleBatch ` option
2488
2487
to FindOptions, the spec preserves the existing API for ` limit ` and instructs drivers to convert negative values
@@ -2575,7 +2574,7 @@ aforementioned allowance in the SemVer spec.
2575
2574
2576
2575
- 2020-01-10: Clarify client-side error reporting for unsupported options
2577
2576
2578
- - 2020-01-10: Error if hint specified for unacknowledged update using OP_UPDATE or OP_MSG for servers \ < 4.2
2577
+ - 2020-01-10: Error if hint specified for unacknowledged update using OP_UPDATE or OP_MSG for servers < 4.2
2579
2578
2580
2579
- 2019-10-28: Removed link to old language examples.
2581
2580
0 commit comments