{"action":"created","issue":{"url":"https://api.github.com/repos/sahat/hackathon-starter/issues/745","repository_url":"https://api.github.com/repos/sahat/hackathon-starter","labels_url":"https://api.github.com/repos/sahat/hackathon-starter/issues/745/labels{/name}","comments_url":"https://api.github.com/repos/sahat/hackathon-starter/issues/745/comments","events_url":"https://api.github.com/repos/sahat/hackathon-starter/issues/745/events","html_url":"https://github.com/sahat/hackathon-starter/issues/745","id":265058708,"number":745,"title":"MongoError: Unknown modifier: $pushAll when linking Twitter account","user":{"login":"alangibson","id":3204098,"avatar_url":"https://avatars0.githubusercontent.com/u/3204098?v=4","gravatar_id":"","url":"https://api.github.com/users/alangibson","html_url":"https://github.com/alangibson","followers_url":"https://api.github.com/users/alangibson/followers","following_url":"https://api.github.com/users/alangibson/following{/other_user}","gists_url":"https://api.github.com/users/alangibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alangibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangibson/subscriptions","organizations_url":"https://api.github.com/users/alangibson/orgs","repos_url":"https://api.github.com/users/alangibson/repos","events_url":"https://api.github.com/users/alangibson/events{/privacy}","received_events_url":"https://api.github.com/users/alangibson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-12T19:30:55Z","updated_at":"2018-03-19T07:33:21Z","closed_at":null,"author_association":"NONE","body":"With Mongo 3.5.13, I'm getting the following error when trying to link a Twitter account:\r\n\r\n```\r\n500 MongoError: Unknown modifier: $pushAll\r\n   at Function.MongoError.create (/home/alangibson/dev/content-freshener/gui/web/node_modules/mongoose/node_modules/mongodb-core/lib/error.js:31:11)\r\n   at toError (/home/alangibson/dev/content-freshener/gui/web/node_modules/mongoose/node_modules/mongodb/lib/utils.js:139:22)\r\n   at /home/alangibson/dev/content-freshener/gui/web/node_modules/mongoose/node_modules/mongodb/lib/collection.js:1060:67\r\n   at /home/alangibson/dev/content-freshener/gui/web/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:469:18\r\n   at _combinedTickCallback (internal/process/next_tick.js:131:7)\r\n   at process._tickCallback (internal/process/next_tick.js:180:9)\r\n```\r\n\r\nFix is to add 'usePushEach: true' option to User schema.\r\n\r\nSee https://github.com/Automattic/mongoose/issues/5574."},"comment":{"url":"https://api.github.com/repos/sahat/hackathon-starter/issues/comments/374123481","html_url":"https://github.com/sahat/hackathon-starter/issues/745#issuecomment-374123481","issue_url":"https://api.github.com/repos/sahat/hackathon-starter/issues/745","id":374123481,"user":{"login":"YasharF","id":6448697,"avatar_url":"https://avatars1.githubusercontent.com/u/6448697?v=4","gravatar_id":"","url":"https://api.github.com/users/YasharF","html_url":"https://github.com/YasharF","followers_url":"https://api.github.com/users/YasharF/followers","following_url":"https://api.github.com/users/YasharF/following{/other_user}","gists_url":"https://api.github.com/users/YasharF/gists{/gist_id}","starred_url":"https://api.github.com/users/YasharF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YasharF/subscriptions","organizations_url":"https://api.github.com/users/YasharF/orgs","repos_url":"https://api.github.com/users/YasharF/repos","events_url":"https://api.github.com/users/YasharF/events{/privacy}","received_events_url":"https://api.github.com/users/YasharF/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T07:33:21Z","updated_at":"2018-03-19T07:33:21Z","author_association":"COLLABORATOR","body":"Per https://github.com/Automattic/mongoose/issues/5574#issuecomment-354609565 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 https://github.com/sahat/hackathon-starter/commit/11bb9a74ddaf1413a651d5856a9f55965917c6db\r\n\r\nHave 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?"}}
{"actor":{"display_login":"YasharF"}}