spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

Type-safe Kotlin update extension [DATAMONGO-2163]

Open spring-projects-issues opened this issue 7 years ago • 1 comments

Mark Paluch opened DATAMONGO-2163 and commented

Similar to DATAMONGO-2138, we should provide a type-safe Update DSL using Kotlin property references. The initial pull request contained already a potential example:

operations.updateFirst(Book::name isEqualTo "Moby-Dick", set(Book::price, 11)) 

Reference URL: https://github.com/spring-projects/spring-data-mongodb/pull/622

Issue Links:

1 votes, 4 watchers

spring-projects-issues avatar Dec 10 '18 14:12 spring-projects-issues

Hey there, is someone working on this? With your help, I can try to prepare a PR for this, because I really hate mixing both typed queries and Update builders.

inakov avatar Dec 21 '21 06:12 inakov