Unfortunately, that does not get inserted in the view structure as a formula that is calculated every time the view is accessed. Instead, it gets calculated upon creation and the actual result of the formula is inserted in the view structure. In other words, the view is always returning data from that date, which was calculated when the view was created.
Unfortunately, I haven’t used mongoDB in years to be able to help. These forums are typically are more front-end focused, so a database-related question doesn’t have the right set of eyes on it
It is OK. It is a great community and I am glad to be part of it. Someone kindly pointed me to the right direction, involving the use of the $$NOW system variable. For completion, in case someone is interested, here is the code that solved the problem:
The number ‘31536000000’ being simply the result of 365 days in milliseconds (365 * 24 * 60 * 60 * 1000). It worked like a charm. Many thanks and all credit to Prasad_.
1 Like
Creating engaging and entertaining content for designers and developers since 1998.