Categories
How to search by such a condition?
It doesn't work, but the gist is this. In other words, how do you search when more than ? Article.find({publishedAt: > Date.now()})publishedAtDate.now()
Article.find({publishedAt: > Date.now()})
publishedAt
Date.now()
Answer the question
In order to leave comments, you need to log in
Article.find({ publishedAt: { $gt: Date.now() } })
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question