Hello Everyone,
I have just started learning and developing my first Mongo driven application. I am getting a serialization error
when trying to compare date part of a datetime property in a collection.
Both _shiftCollection.Scheduled Start and currentDate are in UTC format.
I have found numerous ways using Mongo Query, but I prefer my logic to be
strongly typed.
[What I have tried so far]
var found = await (from f in _shiftCollection.AsQueryable()
where f.ScheduleStart.Date == currentDate.Date
select f).CountAsync();
{document}{ScheduleStart}.Date is not supported.
Any help are greatly appreciated. TIA.