BulkOperations#updateMulti Improvement: Allow Kotlin's Pair Instead of Forcing Spring's Pair #4911
Labels
status: ideal-for-contribution
An issue that a contributor can help us with
type: enhancement
A general enhancement
Related: #2313, f318185
Hello,
When using spring-data-mongodb with Kotlin, I encountered an inconvenience where the updateMulti API of the BulkOperations interface—as well as several other APIs—forces the use of Spring Framework’s utility Pair class. Consequently, Kotlin’s native Pair cannot be used directly, and developers are required to import or convert to Spring’s Pair, which is cumbersome.
To address this issue, I propose adding extension functions in the Kotlin module. These extension functions would accept Kotlin’s Pair as an argument, convert it internally to Spring’s Pair, and then delegate to the existing API.
I would appreciate any feedback on this proposal.
Thank you.
The text was updated successfully, but these errors were encountered: