@@ -75,6 +75,8 @@ func executeAggregate(ctx context.Context, operation *operation) (*operationResu
7575 pipeline = bsonutil .RawToInterfaces (bsonutil .RawArrayToDocuments (val .Array ())... )
7676 case "let" :
7777 opts .SetLet (val .Document ())
78+ case "rawData" :
79+ opts .SetRawData (val .Boolean ())
7880 default :
7981 return nil , fmt .Errorf ("unrecognized aggregate option %q" , key )
8082 }
@@ -202,6 +204,8 @@ func executeCountDocuments(ctx context.Context, operation *operation) (*operatio
202204 return nil , fmt .Errorf ("the maxTimeMS collection option is not supported" )
203205 case "skip" :
204206 opts .SetSkip (int64 (val .Int32 ()))
207+ case "rawData" :
208+ opts .SetRawData (val .Boolean ())
205209 default :
206210 return nil , fmt .Errorf ("unrecognized countDocuments option %q" , key )
207211 }
@@ -433,6 +437,8 @@ func executeDeleteOne(ctx context.Context, operation *operation) (*operationResu
433437 opts .SetHint (hint )
434438 case "let" :
435439 opts .SetLet (val .Document ())
440+ case "rawData" :
441+ opts .SetRawData (val .Boolean ())
436442 default :
437443 return nil , fmt .Errorf ("unrecognized deleteOne option %q" , key )
438444 }
@@ -487,6 +493,8 @@ func executeDeleteMany(ctx context.Context, operation *operation) (*operationRes
487493 opts .SetHint (hint )
488494 case "let" :
489495 opts .SetLet (val .Document ())
496+ case "rawData" :
497+ opts .SetRawData (val .Boolean ())
490498 default :
491499 return nil , fmt .Errorf ("unrecognized deleteMany option %q" , key )
492500 }
@@ -545,6 +553,8 @@ func executeDistinct(ctx context.Context, operation *operation) (*operationResul
545553 // ensured an analogue exists, extend "skippedTestDescriptions" to avoid
546554 // this error.
547555 return nil , fmt .Errorf ("the maxTimeMS collection option is not supported" )
556+ case "rawData" :
557+ opts .SetRawData (val .Boolean ())
548558 default :
549559 return nil , fmt .Errorf ("unrecognized distinct option %q" , key )
550560 }
@@ -690,6 +700,8 @@ func executeEstimatedDocumentCount(ctx context.Context, operation *operation) (*
690700 // ensured an analogue exists, extend "skippedTestDescriptions" to avoid
691701 // this error.
692702 return nil , fmt .Errorf ("the maxTimeMS collection option is not supported" )
703+ case "rawData" :
704+ opts .SetRawData (val .Boolean ())
693705 default :
694706 return nil , fmt .Errorf ("unrecognized estimatedDocumentCount option %q" , key )
695707 }
@@ -1062,6 +1074,8 @@ func executeInsertMany(ctx context.Context, operation *operation) (*operationRes
10621074 documents = bsonutil .RawToInterfaces (bsonutil .RawArrayToDocuments (val .Array ())... )
10631075 case "ordered" :
10641076 opts .SetOrdered (val .Boolean ())
1077+ case "rawData" :
1078+ opts .SetRawData (val .Boolean ())
10651079 default :
10661080 return nil , fmt .Errorf ("unrecognized insertMany option %q" , key )
10671081 }
@@ -1112,6 +1126,8 @@ func executeInsertOne(ctx context.Context, operation *operation) (*operationResu
11121126 opts .SetBypassDocumentValidation (val .Boolean ())
11131127 case "comment" :
11141128 opts .SetComment (val )
1129+ case "rawData" :
1130+ opts .SetRawData (val .Boolean ())
11151131 default :
11161132 return nil , fmt .Errorf ("unrecognized insertOne option %q" , key )
11171133 }
0 commit comments