Is there any way to pass array of indexes to mongodb and get elements from array at that indexes

前端 未结 0 1244
自闭症患者
自闭症患者 2020-12-11 16:13

I have an mongodb doc with an array of 100 elements and I want to get multiple elements from this array at given indexes given in query array. example : let query = [2,3,5,6

相关标签:
回答
  • 消灭零回复
提交回复
热议问题