Mongo Find document
using System;
using MongoDB.Driver;
using MongoDB.Bson;
namespace FindDocument
{
class Program
{
static void Main(string[] args)
{
var dbClient = new MongoClient("mongodb://127.0.0.1:27017");
IMongoDatabase db = dbClient.GetDatabase("testdb");
var cars = db.GetCollection<BsonDocument>("cars");
var filter = Builders<BsonDocument>.Filter.Eq("price", 29000);
var doc = cars.Find(filter).FirstOrDefault();
Console.WriteLine(doc.ToString());
}
}
}