EXCEPTION: Unsupported filter when comparing fields in a collection

Priya
Priya
1194 Points
33 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: 2046
Total Answered: 1
Total Marked As Answer: 1
Posted On: 26-May-2022 20:44

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