Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Compass
Created by Guest
Created on Jan 31, 2022

I would like $match expression to not evaluate 15*24*60*60*1000 expression with the date, instead use the literal expression

When translating the following aggregation code, Compass evaluates the expression with the date. I would like to have a feature where it translates the literal expression to the available language. Example of aggregation code: "date": {$gte: new Date((new Date().getTime() - (15 * 24 * 60 * 60 * 1000)))}
  • Attach files