Mongodb: how to update some elements and remove the rests of an array in an single operation?

后端 未结 0 1600
旧时难觅i
旧时难觅i 2020-12-01 13:55

To an array I want to update some elements and keep array\'s size no great than N. How to do it in an single operation? Lets\' make an example to make my question clear:

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