I need to get all records from MongoDB collection "employee"
where joining_date
is between current_date
and current_date + 5 days
. I couldn't find anything similar to BETWEEN
operator in MongoDB
documentation. Below query works fine in Google BigQuery. Looking for similar solution in MongoDB.
select * from employee where joining_date BETWEEN current_date() and DATE_ADD(current_date(), interval 5 DAY);