spring-data-mongodb
spring-data-mongodb copied to clipboard
Type-safe Kotlin update extension [DATAMONGO-2163]
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:
- DATAMONGO-2138 Type-safe Kotlin query extension ("depends on")
1 votes, 4 watchers
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.