I am working with the MongoDB C# driver. I have a BsonDocument with some data which includes some MongoDB-specific types (like ObjectIDs and ISODates). I want t
Here is the way i did it, to skip mongodb _id entry.
var collection = _database.GetCollection("test");
var result = await collection.Find(new BsonDocument())
.Project(Builders.Projection.Exclude("_id"))
.ToListAsync();
var obj = result.ToJson();