api-design-node icon indicating copy to clipboard operation
api-design-node copied to clipboard

Unknown modifier: $pushAll" error

Open dhcarnivale opened this issue 5 years ago • 1 comments

I downloaded the repo to my computer and installed packages and run the app. But it throws an error

[ ✨ LOG ✨ ] { "name": "MongoError", "message": "Unknown modifier: $pushAll", "driver": true, "index": 0, "code": 9, "errmsg": "Unknown modifier: $pushAll" }

dhcarnivale avatar Nov 26 '18 19:11 dhcarnivale

@dhcarnivale I also encountered the same problem. It seems we were using an old version of the mongoose package where the operator $pushAll has been deprecated. To solve the issue, I installed the latest version of the mongoose package. Refer to the below articles for more clarification:

  1. https://jira.mongodb.org/browse/MONGOID-4499
  2. https://docs.mongodb.com/manual/reference/operator/update/push/

khwilo avatar Apr 30 '20 11:04 khwilo