@@ -842,6 +842,8 @@ func executeFindOneAndDelete(ctx context.Context, operation *operation) (*operat
842
842
opts .SetSort (val .Document ())
843
843
case "let" :
844
844
opts .SetLet (val .Document ())
845
+ case "rawData" :
846
+ opts .SetRawBucketsData (val .Boolean ())
845
847
default :
846
848
return nil , fmt .Errorf ("unrecognized findOneAndDelete option %q" , key )
847
849
}
@@ -924,6 +926,8 @@ func executeFindOneAndReplace(ctx context.Context, operation *operation) (*opera
924
926
opts .SetSort (val .Document ())
925
927
case "upsert" :
926
928
opts .SetUpsert (val .Boolean ())
929
+ case "rawData" :
930
+ opts .SetRawBucketsData (val .Boolean ())
927
931
default :
928
932
return nil , fmt .Errorf ("unrecognized findOneAndReplace option %q" , key )
929
933
}
@@ -1016,6 +1020,8 @@ func executeFindOneAndUpdate(ctx context.Context, operation *operation) (*operat
1016
1020
}
1017
1021
case "upsert" :
1018
1022
opts .SetUpsert (val .Boolean ())
1023
+ case "rawData" :
1024
+ opts .SetRawBucketsData (val .Boolean ())
1019
1025
default :
1020
1026
return nil , fmt .Errorf ("unrecognized findOneAndUpdate option %q" , key )
1021
1027
}
@@ -1062,6 +1068,8 @@ func executeInsertMany(ctx context.Context, operation *operation) (*operationRes
1062
1068
documents = bsonutil .RawToInterfaces (bsonutil .RawArrayToDocuments (val .Array ())... )
1063
1069
case "ordered" :
1064
1070
opts .SetOrdered (val .Boolean ())
1071
+ case "rawData" :
1072
+ opts .SetRawBucketsData (val .Boolean ())
1065
1073
default :
1066
1074
return nil , fmt .Errorf ("unrecognized insertMany option %q" , key )
1067
1075
}
@@ -1112,6 +1120,8 @@ func executeInsertOne(ctx context.Context, operation *operation) (*operationResu
1112
1120
opts .SetBypassDocumentValidation (val .Boolean ())
1113
1121
case "comment" :
1114
1122
opts .SetComment (val )
1123
+ case "rawData" :
1124
+ opts .SetRawBucketsData (val .Boolean ())
1115
1125
default :
1116
1126
return nil , fmt .Errorf ("unrecognized insertOne option %q" , key )
1117
1127
}
@@ -1302,6 +1312,8 @@ func executeReplaceOne(ctx context.Context, operation *operation) (*operationRes
1302
1312
opts .SetUpsert (val .Boolean ())
1303
1313
case "let" :
1304
1314
opts .SetLet (val .Document ())
1315
+ case "rawData" :
1316
+ opts .SetRawBucketsData (val .Boolean ())
1305
1317
default :
1306
1318
return nil , fmt .Errorf ("unrecognized replaceOne option %q" , key )
1307
1319
}
0 commit comments