@@ -433,6 +433,8 @@ func executeDeleteOne(ctx context.Context, operation *operation) (*operationResu
433
433
opts .SetHint (hint )
434
434
case "let" :
435
435
opts .SetLet (val .Document ())
436
+ case "rawData" :
437
+ opts .SetRawBucketsData (val .Boolean ())
436
438
default :
437
439
return nil , fmt .Errorf ("unrecognized deleteOne option %q" , key )
438
440
}
@@ -487,6 +489,8 @@ func executeDeleteMany(ctx context.Context, operation *operation) (*operationRes
487
489
opts .SetHint (hint )
488
490
case "let" :
489
491
opts .SetLet (val .Document ())
492
+ case "rawData" :
493
+ opts .SetRawBucketsData (val .Boolean ())
490
494
default :
491
495
return nil , fmt .Errorf ("unrecognized deleteMany option %q" , key )
492
496
}
@@ -545,6 +549,8 @@ func executeDistinct(ctx context.Context, operation *operation) (*operationResul
545
549
// ensured an analogue exists, extend "skippedTestDescriptions" to avoid
546
550
// this error.
547
551
return nil , fmt .Errorf ("the maxTimeMS collection option is not supported" )
552
+ case "rawData" :
553
+ opts .SetRawBucketsData (val .Boolean ())
548
554
default :
549
555
return nil , fmt .Errorf ("unrecognized distinct option %q" , key )
550
556
}
@@ -842,6 +848,8 @@ func executeFindOneAndDelete(ctx context.Context, operation *operation) (*operat
842
848
opts .SetSort (val .Document ())
843
849
case "let" :
844
850
opts .SetLet (val .Document ())
851
+ case "rawData" :
852
+ opts .SetRawBucketsData (val .Boolean ())
845
853
default :
846
854
return nil , fmt .Errorf ("unrecognized findOneAndDelete option %q" , key )
847
855
}
@@ -924,6 +932,8 @@ func executeFindOneAndReplace(ctx context.Context, operation *operation) (*opera
924
932
opts .SetSort (val .Document ())
925
933
case "upsert" :
926
934
opts .SetUpsert (val .Boolean ())
935
+ case "rawData" :
936
+ opts .SetRawBucketsData (val .Boolean ())
927
937
default :
928
938
return nil , fmt .Errorf ("unrecognized findOneAndReplace option %q" , key )
929
939
}
@@ -1016,6 +1026,8 @@ func executeFindOneAndUpdate(ctx context.Context, operation *operation) (*operat
1016
1026
}
1017
1027
case "upsert" :
1018
1028
opts .SetUpsert (val .Boolean ())
1029
+ case "rawData" :
1030
+ opts .SetRawBucketsData (val .Boolean ())
1019
1031
default :
1020
1032
return nil , fmt .Errorf ("unrecognized findOneAndUpdate option %q" , key )
1021
1033
}
@@ -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 .SetRawBucketsData (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 .SetRawBucketsData (val .Boolean ())
1115
1131
default :
1116
1132
return nil , fmt .Errorf ("unrecognized insertOne option %q" , key )
1117
1133
}
@@ -1302,6 +1318,8 @@ func executeReplaceOne(ctx context.Context, operation *operation) (*operationRes
1302
1318
opts .SetUpsert (val .Boolean ())
1303
1319
case "let" :
1304
1320
opts .SetLet (val .Document ())
1321
+ case "rawData" :
1322
+ opts .SetRawBucketsData (val .Boolean ())
1305
1323
default :
1306
1324
return nil , fmt .Errorf ("unrecognized replaceOne option %q" , key )
1307
1325
}
0 commit comments