EXCEPTION: Unsupported filter when comparing fields in a collection

Priya
Priya
Member
224 Points
52 Posts

I'm trying following query:

 var modifiedOrders = await _applicationUnitOfWork.OrderRepository.Find(a => a.createdDate!= null && a.lastUpdated != (a.createdDate ?? DateTime.UtcNow)).SortBy(x => x.createdDate).ToListAsync();

But getting following error:

EXCEPTION: Unsupported filter: ({document}{lastUpdated} != ({document}{collectionDate} ?? 05/26/20 22 15:09:41)).

Any one has any solution?

Views: 580
Total Answered: 1
Total Marked As Answer: 1
Posted On: 26-May-2022 20:44

Share:   fb twitter linkedin
Answers
Smith
Smith
Moderator
738 Points
154 Posts
         
Posted On: 27-May-2022 00:03
 Log In to Chat