how to use newly added fields from addFields stage in the next match stage in mongodb aggregation
I'd like to take weekly, hourly report of data based on date field from mongodb, for doing so, have tried to add new field called "difference" using addFields stage before the match stage and then try to use that "difference"…