EXCEPTION: Unsupported filter when comparing fields in a collection

Priya
Priya
Participant
936 Points
28 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: 1806
Total Answered: 1
Total Marked As Answer: 1
Posted On: 26-May-2022 20:44

Share:   fb twitter linkedin
Answers
Smith
Smith
None
2568 Points
74 Posts
         
Posted On: 27-May-2022 00:03
 Log In to Chat