@@ -123,8 +123,8 @@ final class MongoCollection_BulkWriteTests: MongoSwiftTestCase {
123123 try self . createFixtures ( 4 )
124124
125125 let requests : [ WriteModel < Document > ] = [
126- . updateOne( filter: [ " _id " : 2 ] , update: [ " $inc " : [ " x " : 1 ] ] , options : nil ) ,
127- . updateMany( filter: [ " _id " : [ " $gt " : 2 ] ] , update: [ " $inc " : [ " x " : - 1 ] ] , options : nil ) ,
126+ . updateOne( filter: [ " _id " : 2 ] , update: [ " $inc " : [ " x " : 1 ] ] ) ,
127+ . updateMany( filter: [ " _id " : [ " $gt " : 2 ] ] , update: [ " $inc " : [ " x " : - 1 ] ] ) ,
128128 . updateOne(
129129 filter: [ " _id " : 5 ] ,
130130 update: [ " $set " : [ " x " : 55 ] ] ,
@@ -135,7 +135,7 @@ final class MongoCollection_BulkWriteTests: MongoSwiftTestCase {
135135 update: [ " $set " : [ " x " : 66 ] ] ,
136136 options: UpdateModelOptions ( upsert: true )
137137 ) ,
138- . updateMany( filter: [ " x " : [ " $gt " : 50 ] ] , update: [ " $inc " : [ " x " : 1 ] ] , options : nil )
138+ . updateMany( filter: [ " x " : [ " $gt " : 50 ] ] , update: [ " $inc " : [ " x " : 1 ] ] )
139139 ]
140140
141141 let result : BulkWriteResult ! = try self . coll. bulkWrite ( requests)
@@ -160,8 +160,8 @@ final class MongoCollection_BulkWriteTests: MongoSwiftTestCase {
160160 try self . createFixtures ( 4 )
161161
162162 let requests : [ WriteModel < Document > ] = [
163- . deleteOne( [ " _id " : 1 ] , options : nil ) ,
164- . deleteMany( [ " _id " : [ " $gt " : 2 ] ] , options : nil )
163+ . deleteOne( [ " _id " : 1 ] ) ,
164+ . deleteMany( [ " _id " : [ " $gt " : 2 ] ] )
165165 ]
166166
167167 let result : BulkWriteResult ! = try self . coll. bulkWrite ( requests)
@@ -182,9 +182,9 @@ final class MongoCollection_BulkWriteTests: MongoSwiftTestCase {
182182 update: [ " $inc " : [ " x " : 1 ] ] ,
183183 options: nil
184184 ) ,
185- . updateMany( filter: [ " _id " : [ " $gt " : 1 ] ] , update: [ " $inc " : [ " x " : 1 ] ] , options : nil ) ,
185+ . updateMany( filter: [ " _id " : [ " $gt " : 1 ] ] , update: [ " $inc " : [ " x " : 1 ] ] ) ,
186186 . insertOne( [ " _id " : 4 ] ) ,
187- . deleteMany( [ " x " : [ " $nin " : [ 24 , 34 ] ] ] , options : nil ) ,
187+ . deleteMany( [ " x " : [ " $nin " : [ 24 , 34 ] ] ] ) ,
188188 . replaceOne(
189189 filter: [ " _id " : 4 ] ,
190190 replacement: [ " _id " : 4 , " x " : 44 ] ,
0 commit comments