0

I'm currently learning MongoDb and creating an app on python. I need to select one random document from user collection using uMongo, I have tried aggregate but it says that umongo have no this function. How can i do that?

1 Answers1

0

Indeed, you need to use the aggregation framework.

To do so, you must circumvent umongo to call the underlying driver (e.g. pymongo) directly.

Jérôme
  • 13,328
  • 7
  • 56
  • 106