Console.WriteLine("mongodb localhost connecting...");
var client = new MongoClient("mongodb://localhost");
var db = client.GetDatabase("mobtions");
var collection = db.GetCollection<BsonDocument>("AffiliTestStatus");
var filter = new Dictionary<string, string>();
filter.Add("offerid", "102030");
dynamic records = collection.Find(new BsonDocument(filter)).ToList();
Вот мой JSON ответ, который я прочитал сверху кода
{{ "_id" : ObjectId("5e411eca5b7dfc53ac571f71"), "offerid" : "102030", "status" : true }}