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 Completed
Categories Atlas Search
Created by Guest
Created on Dec 15, 2020

The equals operator should support date datatype

Currently, for querying on "date" datatypes, we can only use "range" or "near" operators. The "equals" operator supports querying only "boolean" and "objectId" values, and not date values. If we want to do equality based matching for date datatypes, then we can leverage "range" using "gt" and "lt" to find it. However this might be sub-optimal in some cases. Therefore, this is a feature request for having equals operator support date datatype (in addition to boolean and objectId).
  • ADMIN RESPONSE
    Oct 18, 2025
    This is available already; see documentation ( https://www.mongodb.com/docs/atlas/atlas-search/equals/#date-example ).