I'm trying to figure out if it's possible to run shell methods via libmongoc. I can run database commands by using the method mongoc_client_command. So for example, I can run listDatabases
through mongoc_client_command, but I cannot run db.adminCommand( { listDatabases: 1 } )
.
- Is it possible to run shell methods via the libmongoc library?
- If not, is there and alternative api to run shell commands on Mongodb?