Flask-MongoEngine & PyMongo Aggregation Query
I am trying to make an aggregation query using flask-mongoengine, and from what I have read it does not sound like it is possible. I have looked over several forum threads, e-mail chains and a few questions on Stack Overflow, but I have not found a really good example of how to implement aggregation with flask-mongoengine. There is a comment in this question that says you have to use "raw pymongo and aggregation functionality." However, there is no examples of how that might work. I have tinkered with Python and have a basic application up using Flask framework, but delving into full fledged