Hi Guys I am trying to write a complex query in mongodb to fetch documents where date time difference between current server date and createdAt date is less 60 minutes.
Mongoldb -v 3.0.10 currentDate = new Date(); db.blog.find({'blogStatus':'OPEN'})
want to apply something like this:
if currentDate.getMinutes() > 60 minutes true show document false don't show document