H
H
hackuun2018-07-13 18:18:54
MongoDB
hackuun, 2018-07-13 18:18:54

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()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-07-13
@hackuun

Article.find({
  publishedAt: { $gt: Date.now() }
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question