You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MongoTemplate already has many Kotlin extensions, and I'm suggesting to add extensions for "type-safe queries". This will prevent typos in field names, and improve the readability of a query.
The KMongo library uses Kotlin's Property References and infix functions for a type safe query syntax:
Big +1 for that, and FYI this is an idea I would like to apply later to SQL for Spring Data JDBC and Spring Data R2DBC, so working on the Mongo side could help
Tjeu opened DATAMONGO-2138 and commented
MongoTemplate already has many Kotlin extensions, and I'm suggesting to add extensions for "type-safe queries". This will prevent typos in field names, and improve the readability of a query.
The KMongo library uses Kotlin's Property References and infix functions for a type safe query syntax:
https://github.com/Litote/kmongo/blob/master/kmongo-kdoc/docs/typed-queries.md
Spring Data MonoDB could provide a similar syntax:
https://gist.github.com/TjeuKayim/91f52ae21bd5c33b99de028383d5ed89
I like to help coding this feature. It would be my first contribution to Spring
Reference URL: #622
Issue Links:
("is depended on by")
("is depended on by")
Referenced from: pull request #622
0 votes, 5 watchers
The text was updated successfully, but these errors were encountered: