You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
With Mongo 3.5.13, I'm getting the following error when trying to link a Twitter account:
Fix is to add 'usePushEach: true' option to User schema.
See Automattic/mongoose#5574.
The text was updated successfully, but these errors were encountered: