@@ -433,6 +433,8 @@ func executeDeleteOne(ctx context.Context, operation *operation) (*operationResu
433433 opts .SetHint (hint )
434434 case "let" :
435435 opts .SetLet (val .Document ())
436+ case "rawData" :
437+ opts .SetRawBucketsData (val .Boolean ())
436438 default :
437439 return nil , fmt .Errorf ("unrecognized deleteOne option %q" , key )
438440 }
@@ -487,6 +489,8 @@ func executeDeleteMany(ctx context.Context, operation *operation) (*operationRes
487489 opts .SetHint (hint )
488490 case "let" :
489491 opts .SetLet (val .Document ())
492+ case "rawData" :
493+ opts .SetRawBucketsData (val .Boolean ())
490494 default :
491495 return nil , fmt .Errorf ("unrecognized deleteMany option %q" , key )
492496 }
@@ -545,6 +549,8 @@ func executeDistinct(ctx context.Context, operation *operation) (*operationResul
545549 // ensured an analogue exists, extend "skippedTestDescriptions" to avoid
546550 // this error.
547551 return nil , fmt .Errorf ("the maxTimeMS collection option is not supported" )
552+ case "rawData" :
553+ opts .SetRawBucketsData (val .Boolean ())
548554 default :
549555 return nil , fmt .Errorf ("unrecognized distinct option %q" , key )
550556 }
@@ -842,6 +848,8 @@ func executeFindOneAndDelete(ctx context.Context, operation *operation) (*operat
842848 opts .SetSort (val .Document ())
843849 case "let" :
844850 opts .SetLet (val .Document ())
851+ case "rawData" :
852+ opts .SetRawBucketsData (val .Boolean ())
845853 default :
846854 return nil , fmt .Errorf ("unrecognized findOneAndDelete option %q" , key )
847855 }
@@ -924,6 +932,8 @@ func executeFindOneAndReplace(ctx context.Context, operation *operation) (*opera
924932 opts .SetSort (val .Document ())
925933 case "upsert" :
926934 opts .SetUpsert (val .Boolean ())
935+ case "rawData" :
936+ opts .SetRawBucketsData (val .Boolean ())
927937 default :
928938 return nil , fmt .Errorf ("unrecognized findOneAndReplace option %q" , key )
929939 }
@@ -1016,6 +1026,8 @@ func executeFindOneAndUpdate(ctx context.Context, operation *operation) (*operat
10161026 }
10171027 case "upsert" :
10181028 opts .SetUpsert (val .Boolean ())
1029+ case "rawData" :
1030+ opts .SetRawBucketsData (val .Boolean ())
10191031 default :
10201032 return nil , fmt .Errorf ("unrecognized findOneAndUpdate option %q" , key )
10211033 }
@@ -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 .SetRawBucketsData (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 .SetRawBucketsData (val .Boolean ())
11151131 default :
11161132 return nil , fmt .Errorf ("unrecognized insertOne option %q" , key )
11171133 }
@@ -1302,6 +1318,8 @@ func executeReplaceOne(ctx context.Context, operation *operation) (*operationRes
13021318 opts .SetUpsert (val .Boolean ())
13031319 case "let" :
13041320 opts .SetLet (val .Document ())
1321+ case "rawData" :
1322+ opts .SetRawBucketsData (val .Boolean ())
13051323 default :
13061324 return nil , fmt .Errorf ("unrecognized replaceOne option %q" , key )
13071325 }
0 commit comments