MongoDB aggregation pipeline is very powerful. But writing complex multistage aggregations is error-prone. Also the extensive use of the “$” sign in MongoDB command syntax create many problems in Kotlin where the same symbol is used for triggering string interpolation. KMongo DSL solve this problem and has also several other advantages:
- Auto completion of name of aggregation stages, operators and operator parameters
- auto indenting and code folding like regular Kotlin code
- Directly output BSON without the need to parse a JSON string.
beyondeye/kmongodsl
a Kotlin DSL fo MongoDB
Kotlin
3
0