Summary
When running the following LINQ query in C# driver v2.19.1 the following error is returned. This used to work in v2.19.0
> MongoDB.Driver.Linq.ExpressionNotSupportedException: 'Expression not supported: 5 in (Convert(record.DateTimeUtc.Subtract(5/03/2023 6:03:13 AM, millisecond), Double) / 5) because it was not possible to determine how to serialize the constant.'
The query
```csharp
var result = collection
.AsQueryable()
.Select(record => record.DateTimeUtc.Subtract(startTime, DateTimeUnit.Millisecond) / (double)5)
.ToList();
```
Environment
C# Driver 2.19.1
Windows 11 64-bit x86
How to Reproduce
Run above query in version 2.19.1
|