The generic type Buildermust match the generic type of the collection. In your case, the collection should be of type BsonDocument.
var _collection = database.GetCollection<BsonDocument>("name");
var filter = Builders<BsonDocument>.Filter.Eq("_id", id);
var result = _collection.Find(filter);
source
share