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

MongoError: Unknown modifier: $pushAll when linking Twitter account #745

Closed
alangibson opened this issue Oct 12, 2017 · 2 comments
Closed

Comments

@alangibson
Copy link

With Mongo 3.5.13, I'm getting the following error when trying to link a Twitter account:

500 MongoError: Unknown modifier: $pushAll
   at Function.MongoError.create (/home/alangibson/dev/content-freshener/gui/web/node_modules/mongoose/node_modules/mongodb-core/lib/error.js:31:11)
   at toError (/home/alangibson/dev/content-freshener/gui/web/node_modules/mongoose/node_modules/mongodb/lib/utils.js:139:22)
   at /home/alangibson/dev/content-freshener/gui/web/node_modules/mongoose/node_modules/mongodb/lib/collection.js:1060:67
   at /home/alangibson/dev/content-freshener/gui/web/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:469:18
   at _combinedTickCallback (internal/process/next_tick.js:131:7)
   at process._tickCallback (internal/process/next_tick.js:180:9)

Fix is to add 'usePushEach: true' option to User schema.

See Automattic/mongoose#5574.

@JoseRFJuniorLLMs
Copy link

'Unknown modifier: $pushAll'

@YasharF
Copy link
Collaborator

YasharF commented Mar 19, 2018

Per Automattic/mongoose#5574 (comment) the issue has been resolved in Mongoose 5.x . Hackathon-starter's version of mongoose npm package was upgraded from 4.11.7 to 5.0.9 with 11bb9a7

Have you tried the upgrade, or a rebase to pull in the latest changes? Does the problem persist after the mongoose upgrade without changing the User schema?

@YasharF YasharF closed this as completed Mar 21, 2018
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

3 participants