I have an array of ids and I want to retrieve all of them at once. Is this possible, can I pass an array of ids somehow and have all of them returned to me? If so, how?
I'm using the node-native driver.
Thanks!
you need to use $in
operator, that would give you desired result.
https://docs.mongodb.com/manual/reference/operator/query/in/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With