Hi,
I am getting null exception when trying to access getQuery and Delete methods. it is not getting SerializationOptions set.
By using other overload method made it work while finding by ID
var keyBsonType = ((RepresentationSerializationOptions)BsonClassMap.LookupClassMap(typeof(T)).IdMemberMap.SerializationOptions).Representation;
return IsValidKey(key)
? BaseCollection().FindOneById(BsonTypeMapper.MapToBsonValue(key))
: default(T);
Regards,