Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pymongo db.command options

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

like image 855
c24b Avatar asked Sep 26 '26 15:09

c24b


1 Answers

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/

like image 171
asafm Avatar answered Sep 28 '26 05:09

asafm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!