'How to send a MongoDB command shell from C#
I need to accept a command line from the user. I need to send this command to MongoDB. DataGrib, MongoDB Compass or a console application have this capability. But I can't figure out how to repeat this using C#.
Сommand example db.works.find({"major": "Слесарь"})
Previously, MongoDB.Driver had MongoServer, this allowed commands to be executed using the "Eval" function, but now this is a deprecated function.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
