How to create Bson Document with Null value using C# official driver?
问题 I have objects with 3 string fields Country, Province, City. They can contain null or some string name. I wanna query all data with the exact same values. For Example i need all data where City = null, Province = "WA", Country = "USA" I created BsonDocument: var lookup = new QueryDocument { {"GeoPosition.City", userLocation.City}, {"GeoPosition.Province", userLocation.Province}, {"GeoPosition.Country", userLocation.Country} }; But null field was thrown away and document looks like: {