@@ -25,7 +25,7 @@ import org.springframework.data.mongodb.core.aggregation.TypedAggregation
25
25
import org.springframework.data.mongodb.core.index.ReactiveIndexOperations
26
26
import org.springframework.data.mongodb.core.query.NearQuery
27
27
import org.springframework.data.mongodb.core.query.Query
28
- import org.springframework.data.mongodb.core.query.Update
28
+ import org.springframework.data.mongodb.core.query.UpdateDefinition
29
29
import reactor.core.publisher.Flux
30
30
import reactor.core.publisher.Mono
31
31
@@ -194,7 +194,7 @@ inline fun <reified T : Any> ReactiveMongoOperations.geoNear(near: NearQuery, co
194
194
* @author Sebastien Deleuze
195
195
* @since 2.0
196
196
*/
197
- inline fun <reified T : Any > ReactiveMongoOperations.findAndModify (query : Query , update : Update , options : FindAndModifyOptions , collectionName : String? = null): Mono <T > =
197
+ inline fun <reified T : Any > ReactiveMongoOperations.findAndModify (query : Query , update : UpdateDefinition , options : FindAndModifyOptions , collectionName : String? = null): Mono <T > =
198
198
if (collectionName != null ) findAndModify(query, update, options, T ::class .java, collectionName) else findAndModify(query, update, options, T ::class .java)
199
199
200
200
/* *
@@ -234,7 +234,7 @@ inline fun <reified T : Any> ReactiveMongoOperations.insert(batchToSave: Collect
234
234
* @since 2.0
235
235
*/
236
236
@Suppress(" EXTENSION_SHADOWED_BY_MEMBER" )
237
- inline fun <reified T : Any > ReactiveMongoOperations.upsert (query : Query , update : Update , collectionName : String? = null): Mono <UpdateResult > =
237
+ inline fun <reified T : Any > ReactiveMongoOperations.upsert (query : Query , update : UpdateDefinition , collectionName : String? = null): Mono <UpdateResult > =
238
238
if (collectionName != null ) upsert(query, update, T ::class .java, collectionName)
239
239
else upsert(query, update, T ::class .java)
240
240
@@ -245,7 +245,7 @@ inline fun <reified T : Any> ReactiveMongoOperations.upsert(query: Query, update
245
245
* @since 2.0
246
246
*/
247
247
@Suppress(" EXTENSION_SHADOWED_BY_MEMBER" )
248
- inline fun <reified T : Any > ReactiveMongoOperations.updateFirst (query : Query , update : Update , collectionName : String? = null): Mono <UpdateResult > =
248
+ inline fun <reified T : Any > ReactiveMongoOperations.updateFirst (query : Query , update : UpdateDefinition , collectionName : String? = null): Mono <UpdateResult > =
249
249
if (collectionName != null ) updateFirst(query, update, T ::class .java, collectionName)
250
250
else updateFirst(query, update, T ::class .java)
251
251
@@ -256,7 +256,7 @@ inline fun <reified T : Any> ReactiveMongoOperations.updateFirst(query: Query, u
256
256
* @since 2.0
257
257
*/
258
258
@Suppress(" EXTENSION_SHADOWED_BY_MEMBER" )
259
- inline fun <reified T : Any > ReactiveMongoOperations.updateMulti (query : Query , update : Update , collectionName : String? = null): Mono <UpdateResult > =
259
+ inline fun <reified T : Any > ReactiveMongoOperations.updateMulti (query : Query , update : UpdateDefinition , collectionName : String? = null): Mono <UpdateResult > =
260
260
if (collectionName != null ) updateMulti(query, update, T ::class .java, collectionName)
261
261
else updateMulti(query, update, T ::class .java)
262
262
0 commit comments