@@ -123,19 +123,19 @@ internal protocol FindAndModifyOptionsConvertible {
123123/// Options to use when executing a `findOneAndDelete` command on a `MongoCollection`.
124124public struct FindOneAndDeleteOptions : FindAndModifyOptionsConvertible , Decodable {
125125 /// Specifies a collation to use.
126- public let collation : Document ?
126+ public var collation : Document ?
127127
128128 /// The maximum amount of time to allow the query to run.
129- public let maxTimeMS : Int64 ?
129+ public var maxTimeMS : Int64 ?
130130
131131 /// Limits the fields to return for the matching document.
132- public let projection : Document ?
132+ public var projection : Document ?
133133
134134 /// Determines which document the operation modifies if the query selects multiple documents.
135- public let sort : Document ?
135+ public var sort : Document ?
136136
137137 /// An optional `WriteConcern` to use for the command.
138- public let writeConcern : WriteConcern ?
138+ public var writeConcern : WriteConcern ?
139139
140140 internal func asFindAndModifyOptions( ) throws -> FindAndModifyOptions {
141141 return try FindAndModifyOptions ( collation: collation,
@@ -163,28 +163,28 @@ public struct FindOneAndDeleteOptions: FindAndModifyOptionsConvertible, Decodabl
163163/// Options to use when executing a `findOneAndReplace` command on a `MongoCollection`.
164164public struct FindOneAndReplaceOptions : FindAndModifyOptionsConvertible , Decodable {
165165 /// If `true`, allows the write to opt-out of document level validation.
166- public let bypassDocumentValidation : Bool ?
166+ public var bypassDocumentValidation : Bool ?
167167
168168 /// Specifies a collation to use.
169- public let collation : Document ?
169+ public var collation : Document ?
170170
171171 /// The maximum amount of time to allow the query to run.
172- public let maxTimeMS : Int64 ?
172+ public var maxTimeMS : Int64 ?
173173
174174 /// Limits the fields to return for the matching document.
175- public let projection : Document ?
175+ public var projection : Document ?
176176
177177 /// When `ReturnDocument.After`, returns the replaced or inserted document rather than the original.
178- public let returnDocument : ReturnDocument ?
178+ public var returnDocument : ReturnDocument ?
179179
180180 /// Determines which document the operation modifies if the query selects multiple documents.
181- public let sort : Document ?
181+ public var sort : Document ?
182182
183183 /// When `true`, creates a new document if no document matches the query.
184- public let upsert : Bool ?
184+ public var upsert : Bool ?
185185
186186 /// An optional `WriteConcern` to use for the command.
187- public let writeConcern : WriteConcern ?
187+ public var writeConcern : WriteConcern ?
188188
189189 internal func asFindAndModifyOptions( ) throws -> FindAndModifyOptions {
190190 return try FindAndModifyOptions ( bypassDocumentValidation: bypassDocumentValidation,
@@ -220,31 +220,31 @@ public struct FindOneAndReplaceOptions: FindAndModifyOptionsConvertible, Decodab
220220/// Options to use when executing a `findOneAndUpdate` command on a `MongoCollection`.
221221public struct FindOneAndUpdateOptions : FindAndModifyOptionsConvertible , Decodable {
222222 /// A set of filters specifying to which array elements an update should apply.
223- public let arrayFilters : [ Document ] ?
223+ public var arrayFilters : [ Document ] ?
224224
225225 /// If `true`, allows the write to opt-out of document level validation.
226- public let bypassDocumentValidation : Bool ?
226+ public var bypassDocumentValidation : Bool ?
227227
228228 /// Specifies a collation to use.
229- public let collation : Document ?
229+ public var collation : Document ?
230230
231231 /// The maximum amount of time to allow the query to run.
232- public let maxTimeMS : Int64 ?
232+ public var maxTimeMS : Int64 ?
233233
234234 /// Limits the fields to return for the matching document.
235- public let projection : Document ?
235+ public var projection : Document ?
236236
237237 /// When`ReturnDocument.After`, returns the updated or inserted document rather than the original.
238- public let returnDocument : ReturnDocument ?
238+ public var returnDocument : ReturnDocument ?
239239
240240 /// Determines which document the operation modifies if the query selects multiple documents.
241- public let sort : Document ?
241+ public var sort : Document ?
242242
243243 /// When `true`, creates a new document if no document matches the query.
244- public let upsert : Bool ?
244+ public var upsert : Bool ?
245245
246246 /// An optional `WriteConcern` to use for the command.
247- public let writeConcern : WriteConcern ?
247+ public var writeConcern : WriteConcern ?
248248
249249 internal func asFindAndModifyOptions( ) throws -> FindAndModifyOptions {
250250 return try FindAndModifyOptions ( arrayFilters: arrayFilters,
0 commit comments