@@ -323,6 +323,13 @@ class AggregateOptions {
323
323
/**
324
324
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
325
325
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
326
+
327
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
328
+ * general application use. It may be changed or removed in any release without notice.
329
+ *
330
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
331
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
332
+ * - Excluding it from primary documentation
326
333
*
327
334
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
328
335
*
@@ -384,7 +391,13 @@ class CountOptions {
384
391
385
392
/**
386
393
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
387
- * for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
394
+ *
395
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
396
+ * general application use. It may be changed or removed in any release without notice.
397
+ *
398
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
399
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
400
+ * - Excluding it from primary documentation
388
401
*
389
402
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
390
403
*
@@ -415,11 +428,18 @@ class EstimatedDocumentCountOptions {
415
428
* comment may result in a server-side error.
416
429
*/
417
430
comment: Optional<any>;
418
-
431
+
419
432
/**
420
433
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
421
434
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
422
435
*
436
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
437
+ * general application use. It may be changed or removed in any release without notice.
438
+ *
439
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
440
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
441
+ * - Excluding it from primary documentation
442
+ *
423
443
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
424
444
*
425
445
* @since MongoDB 8.2
@@ -469,11 +489,18 @@ class DistinctOptions {
469
489
* @see https://www.mongodb.com/docs/manual/reference/command/find/
470
490
*/
471
491
hint: Optional<(String | Document)>;
472
-
492
+
473
493
/**
474
494
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
475
495
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
476
496
*
497
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
498
+ * general application use. It may be changed or removed in any release without notice.
499
+ *
500
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
501
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
502
+ * - Excluding it from primary documentation
503
+ *
477
504
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
478
505
*
479
506
* @since MongoDB 8.2
@@ -753,11 +780,18 @@ class FindOptions {
753
780
* @see https://www.mongodb.com/docs/manual/reference/command/find/
754
781
*/
755
782
let: Optional<Document>;
756
-
783
+
757
784
/**
758
785
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
759
786
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
760
787
*
788
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
789
+ * general application use. It may be changed or removed in any release without notice.
790
+ *
791
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
792
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
793
+ * - Excluding it from primary documentation
794
+ *
761
795
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
762
796
*
763
797
* @since MongoDB 8.2
@@ -1035,11 +1069,18 @@ class BulkWriteOptions {
1035
1069
* The value of let will be passed to all update and delete, but not insert, commands.
1036
1070
*/
1037
1071
let: Optional <Document >;
1038
-
1072
+
1039
1073
/**
1040
1074
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
1041
1075
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
1042
1076
*
1077
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
1078
+ * general application use. It may be changed or removed in any release without notice.
1079
+ *
1080
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
1081
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
1082
+ * - Excluding it from primary documentation
1083
+ *
1043
1084
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
1044
1085
*
1045
1086
* @since MongoDB 8.2
@@ -1067,11 +1108,18 @@ class InsertOneOptions {
1067
1108
* and providing one will result in a server-side error.
1068
1109
*/
1069
1110
comment: Optional <any >;
1070
-
1111
+
1071
1112
/**
1072
1113
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
1073
1114
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
1074
1115
*
1116
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
1117
+ * general application use. It may be changed or removed in any release without notice.
1118
+ *
1119
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
1120
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
1121
+ * - Excluding it from primary documentation
1122
+ *
1075
1123
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
1076
1124
*
1077
1125
* @since MongoDB 8.2
@@ -1106,11 +1154,18 @@ class InsertManyOptions {
1106
1154
* and providing one will result in a server-side error.
1107
1155
*/
1108
1156
comment: Optional <any >;
1109
-
1157
+
1110
1158
/**
1111
1159
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
1112
1160
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
1113
1161
*
1162
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
1163
+ * general application use. It may be changed or removed in any release without notice.
1164
+ *
1165
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
1166
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
1167
+ * - Excluding it from primary documentation
1168
+ *
1114
1169
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
1115
1170
*
1116
1171
* @since MongoDB 8.2
@@ -1207,11 +1262,18 @@ class UpdateOptions {
1207
1262
* @see https://www.mongodb.com/docs/manual/reference/command/update/
1208
1263
*/
1209
1264
sort: Optional <Document >;
1210
-
1265
+
1211
1266
/**
1212
1267
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
1213
1268
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
1214
1269
*
1270
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
1271
+ * general application use. It may be changed or removed in any release without notice.
1272
+ *
1273
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
1274
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
1275
+ * - Excluding it from primary documentation
1276
+ *
1215
1277
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
1216
1278
*
1217
1279
* @since MongoDB 8.2
@@ -1296,11 +1358,18 @@ class ReplaceOptions {
1296
1358
* @see https://www.mongodb.com/docs/manual/reference/command/update/
1297
1359
*/
1298
1360
sort: Optional <Document >;
1299
-
1361
+
1300
1362
/**
1301
1363
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
1302
1364
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
1303
1365
*
1366
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
1367
+ * general application use. It may be changed or removed in any release without notice.
1368
+ *
1369
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
1370
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
1371
+ * - Excluding it from primary documentation
1372
+ *
1304
1373
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
1305
1374
*
1306
1375
* @since MongoDB 8.2
@@ -1356,11 +1425,18 @@ class DeleteOptions {
1356
1425
* and providing one will result in a server-side error.
1357
1426
*/
1358
1427
comment: Optional <any >;
1359
-
1428
+
1360
1429
/**
1361
1430
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
1362
1431
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
1363
1432
*
1433
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
1434
+ * general application use. It may be changed or removed in any release without notice.
1435
+ *
1436
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
1437
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
1438
+ * - Excluding it from primary documentation
1439
+ *
1364
1440
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
1365
1441
*
1366
1442
* @since MongoDB 8.2
@@ -2119,11 +2195,18 @@ class FindOneAndDeleteOptions {
2119
2195
* and providing one will result in a server-side error.
2120
2196
*/
2121
2197
comment: Optional <any >;
2122
-
2198
+
2123
2199
/**
2124
2200
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
2125
2201
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
2126
2202
*
2203
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
2204
+ * general application use. It may be changed or removed in any release without notice.
2205
+ *
2206
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
2207
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
2208
+ * - Excluding it from primary documentation
2209
+ *
2127
2210
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
2128
2211
*
2129
2212
* @since MongoDB 8.2
@@ -2237,11 +2320,18 @@ class FindOneAndReplaceOptions {
2237
2320
* and providing one will result in a server-side error.
2238
2321
*/
2239
2322
comment: Optional <any >;
2240
-
2323
+
2241
2324
/**
2242
2325
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
2243
2326
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
2244
2327
*
2328
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
2329
+ * general application use. It may be changed or removed in any release without notice.
2330
+ *
2331
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
2332
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
2333
+ * - Excluding it from primary documentation
2334
+ *
2245
2335
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
2246
2336
*
2247
2337
* @since MongoDB 8.2
@@ -2364,11 +2454,18 @@ class FindOneAndUpdateOptions {
2364
2454
* and providing one will result in a server-side error.
2365
2455
*/
2366
2456
comment: Optional <any >;
2367
-
2457
+
2368
2458
/**
2369
2459
* This option MAY be implemented by drivers that need to grant access to underlying namespaces
2370
2460
* for time-series collections. Drivers SHOULD NOT implement this option unless asked to do so.
2371
2461
*
2462
+ * This option is intended for internal use by MongoDB teams and should be discouraged for
2463
+ * general application use. It may be changed or removed in any release without notice.
2464
+ *
2465
+ * Drivers SHOULD implement this option in a way that discourages customer use, such as:
2466
+ * - Marking it as deprecated, experimental, or internal in their language's idioms
2467
+ * - Excluding it from primary documentation
2468
+ *
2372
2469
* @note This option MUST NOT be sent when connected to pre-8.2 servers.
2373
2470
*
2374
2471
* @since MongoDB 8.2
@@ -2455,15 +2552,15 @@ specifically. An example, using Node, might look like:
2455
2552
collection .find ({ name: ' john doe' }).explain ({ maxTimeMS: 1000 });
2456
2553
2457
2554
// sends:
2458
- {
2555
+ {
2459
2556
explain: { find: <collection >, query: { name: ' john doe' } },
2460
2557
maxTimeMS: 1000
2461
2558
}
2462
2559
2463
2560
collection .find ({ name: ' john doe' }).explain ({ timeoutMS: 1000 });
2464
2561
2465
2562
// sends:
2466
- {
2563
+ {
2467
2564
explain: { find: <collection >, query: { name: ' john doe' } },
2468
2565
maxTimeMS: <1000 - min rtt >
2469
2566
}
@@ -2652,6 +2749,8 @@ aforementioned allowance in the SemVer spec.
2652
2749
2653
2750
## Changelog
2654
2751
2752
+ - 2025-09-09: Clarify that ` rawData ` is for internal use only.
2753
+
2655
2754
- 2025-06-27: Added ` rawData ` options.
2656
2755
2657
2756
- 2024-11-13: Define ` findOne ` operation as optional, and add guidance on ` limit ` and ` batchSize ` for ` find ` operations.
0 commit comments