-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Dotnet Drivers
-
Needed
-
Summary
When calling collection that contains a representation of a C# DateOnly struct the new v3 driver is unable to deserialize the response.
The cluster is standalone and on version 7.0.14
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
How to Reproduce
var filter = Builders<Employee>.Filter.Eq(e => e.Id, employeeId);
var projection = Builders<Employee>.Projection
.Include(e => e.Alias)
.Include(e => e.FirstName)
.Include(e => e.Surname)
.Include(e => e.Qualifications);
var employee = await _collection.Find(filter).Project<Employee>(projection).FirstOrDefaultAsync();
The above code fails when calling .Find()