I just have a very general question db.command option supported by pymongo.
In the doc, it is sayed that db.command accept str or dict of a mongo command, but no details of wich exactly are already implemented.
I know for example that mongoexport is not supported and has to be called outside python in bash basically. So it requires to use subcommand to reintegrate the mongo export inside my python programm.
So I'm just asking here to have a more complete outlook of db.command possibilities already implemented in Pymongo API.
Thanks in advance
Pymongo db.command is similar to mongo shell db.runCommand() method. You can the list of supported commands here:
http://docs.mongodb.org/manual/reference/command/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With