Reputation: 5552
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
Upvotes: 3
Views: 11872
Reputation: 919
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/
Upvotes: 4