'NodeJs + MongoDB: get results for a array of timestamps [duplicate]

I have following scheme in my mongoDB

{ 
  _id: ObjectId(),
  stamp: 1649843113567, 
  value: 20.5 
}

Now I need to know if there are documents for a array of timestamps, e.g:

[
  "1649832333744",
  "1649843113567",
  "1649847613781"
]

Is there a possibility to manage this in one query, so I have a result for every stamp?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source