@@ -319,6 +319,15 @@ class AggregateOptions {
319
319
* @see https://www.mongodb.com/docs/manual/reference/command/aggregate/
320
320
*/
321
321
let: Optional<Document>;
322
+
323
+ /**
324
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
325
+ *
326
+ * @note This option will not be sent when connected to pre-9.0 servers.
327
+ *
328
+ * @since MongoDB 8.2
329
+ */
330
+ rawData: Optional<Boolean>;
322
331
}
323
332
324
333
class CountOptions {
@@ -371,6 +380,15 @@ class CountOptions {
371
380
* and providing one will result in a server-side error.
372
381
*/
373
382
comment: Optional<any>;
383
+
384
+ /**
385
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
386
+ *
387
+ * @note This option will not be sent when connected to pre-9.0 servers.
388
+ *
389
+ * @since MongoDB 8.2
390
+ */
391
+ rawData: Optional<Boolean>;
374
392
}
375
393
376
394
class EstimatedDocumentCountOptions {
@@ -395,6 +413,15 @@ class EstimatedDocumentCountOptions {
395
413
* comment may result in a server-side error.
396
414
*/
397
415
comment: Optional<any>;
416
+
417
+ /**
418
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
419
+ *
420
+ * @note This option will not be sent when connected to pre-9.0 servers.
421
+ *
422
+ * @since MongoDB 8.2
423
+ */
424
+ rawData: Optional<Boolean>;
398
425
}
399
426
400
427
class DistinctOptions {
@@ -439,6 +466,15 @@ class DistinctOptions {
439
466
* @see https://www.mongodb.com/docs/manual/reference/command/find/
440
467
*/
441
468
hint: Optional<(String | Document)>;
469
+
470
+ /**
471
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
472
+ *
473
+ * @note This option will not be sent when connected to pre-9.0 servers.
474
+ *
475
+ * @since MongoDB 8.2
476
+ */
477
+ rawData: Optional<Boolean>;
442
478
}
443
479
444
480
enum CursorType {
@@ -713,6 +749,15 @@ class FindOptions {
713
749
* @see https://www.mongodb.com/docs/manual/reference/command/find/
714
750
*/
715
751
let: Optional<Document>;
752
+
753
+ /**
754
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
755
+ *
756
+ * @note This option will not be sent when connected to pre-9.0 servers.
757
+ *
758
+ * @since MongoDB 8.2
759
+ */
760
+ rawData: Optional<Boolean>;
716
761
}
717
762
718
763
type FindOneOptions = Omit<FindOptions, 'batchSize' | 'cursorType' | 'limit' | 'noCursorTimeout'>;
@@ -985,6 +1030,15 @@ class BulkWriteOptions {
985
1030
* The value of let will be passed to all update and delete, but not insert, commands.
986
1031
*/
987
1032
let: Optional <Document >;
1033
+
1034
+ /**
1035
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
1036
+ *
1037
+ * @note This option will not be sent when connected to pre-9.0 servers.
1038
+ *
1039
+ * @since MongoDB 8.2
1040
+ */
1041
+ rawData: Optional <Boolean >;
988
1042
}
989
1043
990
1044
class InsertOneOptions {
@@ -1007,6 +1061,15 @@ class InsertOneOptions {
1007
1061
* and providing one will result in a server-side error.
1008
1062
*/
1009
1063
comment: Optional <any >;
1064
+
1065
+ /**
1066
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
1067
+ *
1068
+ * @note This option will not be sent when connected to pre-9.0 servers.
1069
+ *
1070
+ * @since MongoDB 8.2
1071
+ */
1072
+ rawData: Optional <Boolean >;
1010
1073
}
1011
1074
1012
1075
class InsertManyOptions {
@@ -1036,6 +1099,15 @@ class InsertManyOptions {
1036
1099
* and providing one will result in a server-side error.
1037
1100
*/
1038
1101
comment: Optional <any >;
1102
+
1103
+ /**
1104
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
1105
+ *
1106
+ * @note This option will not be sent when connected to pre-9.0 servers.
1107
+ *
1108
+ * @since MongoDB 8.2
1109
+ */
1110
+ rawData: Optional <Boolean >;
1039
1111
}
1040
1112
1041
1113
class UpdateOptions {
@@ -1127,6 +1199,15 @@ class UpdateOptions {
1127
1199
* @see https://www.mongodb.com/docs/manual/reference/command/update/
1128
1200
*/
1129
1201
sort: Optional <Document >;
1202
+
1203
+ /**
1204
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
1205
+ *
1206
+ * @note This option will not be sent when connected to pre-9.0 servers.
1207
+ *
1208
+ * @since MongoDB 8.2
1209
+ */
1210
+ rawData: Optional <Boolean >;
1130
1211
}
1131
1212
1132
1213
class ReplaceOptions {
@@ -1206,6 +1287,15 @@ class ReplaceOptions {
1206
1287
* @see https://www.mongodb.com/docs/manual/reference/command/update/
1207
1288
*/
1208
1289
sort: Optional <Document >;
1290
+
1291
+ /**
1292
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
1293
+ *
1294
+ * @note This option will not be sent when connected to pre-9.0 servers.
1295
+ *
1296
+ * @since MongoDB 8.2
1297
+ */
1298
+ rawData: Optional <Boolean >;
1209
1299
}
1210
1300
1211
1301
class DeleteOptions {
@@ -1256,6 +1346,15 @@ class DeleteOptions {
1256
1346
* and providing one will result in a server-side error.
1257
1347
*/
1258
1348
comment: Optional <any >;
1349
+
1350
+ /**
1351
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
1352
+ *
1353
+ * @note This option will not be sent when connected to pre-9.0 servers.
1354
+ *
1355
+ * @since MongoDB 8.2
1356
+ */
1357
+ rawData: Optional <Boolean >;
1259
1358
}
1260
1359
` ` `
1261
1360
@@ -2009,6 +2108,15 @@ class FindOneAndDeleteOptions {
2009
2108
* and providing one will result in a server-side error.
2010
2109
*/
2011
2110
comment: Optional <any >;
2111
+
2112
+ /**
2113
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
2114
+ *
2115
+ * @note This option will not be sent when connected to pre-9.0 servers.
2116
+ *
2117
+ * @since MongoDB 8.2
2118
+ */
2119
+ rawData: Optional <Boolean >;
2012
2120
}
2013
2121
2014
2122
class FindOneAndReplaceOptions {
@@ -2117,6 +2225,15 @@ class FindOneAndReplaceOptions {
2117
2225
* and providing one will result in a server-side error.
2118
2226
*/
2119
2227
comment: Optional <any >;
2228
+
2229
+ /**
2230
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
2231
+ *
2232
+ * @note This option will not be sent when connected to pre-9.0 servers.
2233
+ *
2234
+ * @since MongoDB 8.2
2235
+ */
2236
+ rawData: Optional <Boolean >;
2120
2237
}
2121
2238
2122
2239
class FindOneAndUpdateOptions {
@@ -2234,6 +2351,15 @@ class FindOneAndUpdateOptions {
2234
2351
* and providing one will result in a server-side error.
2235
2352
*/
2236
2353
comment: Optional <any >;
2354
+
2355
+ /**
2356
+ * This option allows operations to function on the bucket-level data while accessing the primary namespace (not system.buckets).
2357
+ *
2358
+ * @note This option will not be sent when connected to pre-9.0 servers.
2359
+ *
2360
+ * @since MongoDB 8.2
2361
+ */
2362
+ rawData: Optional <Boolean >;
2237
2363
}
2238
2364
` ` `
2239
2365
@@ -2512,6 +2638,8 @@ aforementioned allowance in the SemVer spec.
2512
2638
2513
2639
## Changelog
2514
2640
2641
+ - 2025-06-27: Added ` rawData ` options.
2642
+
2515
2643
- 2024-11-13: Define ` findOne ` operation as optional, and add guidance on ` limit ` and ` batchSize ` for ` find ` operations.
2516
2644
2517
2645
- 2024-11-04: Always send a value for ` bypassDocumentValidation ` if it was specified.
0 commit comments