@@ -75,6 +75,8 @@ func executeAggregate(ctx context.Context, operation *operation) (*operationResu
75
75
pipeline = bsonutil .RawToInterfaces (bsonutil .RawArrayToDocuments (val .Array ())... )
76
76
case "let" :
77
77
opts .SetLet (val .Document ())
78
+ case "rawData" :
79
+ opts .SetRawData (val .Boolean ())
78
80
default :
79
81
return nil , fmt .Errorf ("unrecognized aggregate option %q" , key )
80
82
}
@@ -202,6 +204,8 @@ func executeCountDocuments(ctx context.Context, operation *operation) (*operatio
202
204
return nil , fmt .Errorf ("the maxTimeMS collection option is not supported" )
203
205
case "skip" :
204
206
opts .SetSkip (int64 (val .Int32 ()))
207
+ case "rawData" :
208
+ opts .SetRawData (val .Boolean ())
205
209
default :
206
210
return nil , fmt .Errorf ("unrecognized countDocuments option %q" , key )
207
211
}
@@ -433,6 +437,8 @@ func executeDeleteOne(ctx context.Context, operation *operation) (*operationResu
433
437
opts .SetHint (hint )
434
438
case "let" :
435
439
opts .SetLet (val .Document ())
440
+ case "rawData" :
441
+ opts .SetRawData (val .Boolean ())
436
442
default :
437
443
return nil , fmt .Errorf ("unrecognized deleteOne option %q" , key )
438
444
}
@@ -487,6 +493,8 @@ func executeDeleteMany(ctx context.Context, operation *operation) (*operationRes
487
493
opts .SetHint (hint )
488
494
case "let" :
489
495
opts .SetLet (val .Document ())
496
+ case "rawData" :
497
+ opts .SetRawData (val .Boolean ())
490
498
default :
491
499
return nil , fmt .Errorf ("unrecognized deleteMany option %q" , key )
492
500
}
@@ -545,6 +553,8 @@ func executeDistinct(ctx context.Context, operation *operation) (*operationResul
545
553
// ensured an analogue exists, extend "skippedTestDescriptions" to avoid
546
554
// this error.
547
555
return nil , fmt .Errorf ("the maxTimeMS collection option is not supported" )
556
+ case "rawData" :
557
+ opts .SetRawData (val .Boolean ())
548
558
default :
549
559
return nil , fmt .Errorf ("unrecognized distinct option %q" , key )
550
560
}
@@ -690,6 +700,8 @@ func executeEstimatedDocumentCount(ctx context.Context, operation *operation) (*
690
700
// ensured an analogue exists, extend "skippedTestDescriptions" to avoid
691
701
// this error.
692
702
return nil , fmt .Errorf ("the maxTimeMS collection option is not supported" )
703
+ case "rawData" :
704
+ opts .SetRawData (val .Boolean ())
693
705
default :
694
706
return nil , fmt .Errorf ("unrecognized estimatedDocumentCount option %q" , key )
695
707
}
@@ -1062,6 +1074,8 @@ func executeInsertMany(ctx context.Context, operation *operation) (*operationRes
1062
1074
documents = bsonutil .RawToInterfaces (bsonutil .RawArrayToDocuments (val .Array ())... )
1063
1075
case "ordered" :
1064
1076
opts .SetOrdered (val .Boolean ())
1077
+ case "rawData" :
1078
+ opts .SetRawData (val .Boolean ())
1065
1079
default :
1066
1080
return nil , fmt .Errorf ("unrecognized insertMany option %q" , key )
1067
1081
}
@@ -1112,6 +1126,8 @@ func executeInsertOne(ctx context.Context, operation *operation) (*operationResu
1112
1126
opts .SetBypassDocumentValidation (val .Boolean ())
1113
1127
case "comment" :
1114
1128
opts .SetComment (val )
1129
+ case "rawData" :
1130
+ opts .SetRawData (val .Boolean ())
1115
1131
default :
1116
1132
return nil , fmt .Errorf ("unrecognized insertOne option %q" , key )
1117
1133
}
0 commit comments