Mongoose update 'cannot use the part (..) to traverse the element

前端 未结 2 1522
清歌不尽
清歌不尽 2020-12-11 00:43

I have this really annoying issue where i can\'t update anything using mongoose. It\'s really frustrating to use, and the documentation is not helping at all.

I have

2条回答
  •  天命终不由人
    2020-12-11 01:14

    Use the $push or other array update operators to add elements to an array. For details, refer http://docs.mongodb.org/manual/reference/operator/update/push/#up._S_push

提交回复
热议问题