3 ms·
Disclaimer: I used to work for MongoDB. I think that MQL is very difficult to write because of its verbosity—it simply requires so much text. Even as someone w
by juliusgeo 3y ago
Disclaimer: I used to work for MongoDB.
I think that MQL is very difficult to write because of its verbosity—it simply requires so much text. Even as someone who regularly wrote and debugged MQL queries, it is just so verbose, but essentially is just an AST structure and doesn’t need that much verbosity. I created a library that attempts to solve that friction, but I have no idea if it’s still being maintained by MongoDB: https://github.com/mongodb-labs/pymongoagg https://github.com/mongodb-labs/pymongoagg
- tiltowait 3y agoIt's definitely verbose, and working with it in Python is more annoying than in Javascript, due to the need to enclose all the operators in quotes. At the same time, I feel that the verbosity provides clarity, particularly in certain, more complex operations. Seems like your library was last updated in April, though just basic maintenance. It looks pretty interesting! I might play around with it next weekend.