Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown modifier: $pushAll" error #11

Open
dhcarnivale opened this issue Nov 26, 2018 · 1 comment
Open

Unknown modifier: $pushAll" error #11

dhcarnivale opened this issue Nov 26, 2018 · 1 comment

Comments

@dhcarnivale
Copy link

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"
}

@khwilo
Copy link

khwilo commented Apr 30, 2020

@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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants