I am using ReactiveCrudRepository with Spring web flux. Following query is not updating data in a Postgres database with r2dbc. I tried initially without @Modifying also. I used this annotation with reference of this link
@Modifying(flushAutomatically = true, clearAutomatically = true)
@Query("update company set deleted_at=current_timestamp, deleted_by=:deletedByUserId where id=:id")
Mono<Void> deleteById(Long id, Long deletedByUserId);