{"action":"opened","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/6333","repository_url":"https://api.github.com/repos/Automattic/mongoose","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/6333/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/6333/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/6333/events","html_url":"https://github.com/Automattic/mongoose/issues/6333","id":313459698,"number":6333,"title":"MongoDB 1243 ($[] notation) - Mongoose Support?","user":{"login":"shivpatel","id":1449420,"avatar_url":"https://avatars2.githubusercontent.com/u/1449420?v=4","gravatar_id":"","url":"https://api.github.com/users/shivpatel","html_url":"https://github.com/shivpatel","followers_url":"https://api.github.com/users/shivpatel/followers","following_url":"https://api.github.com/users/shivpatel/following{/other_user}","gists_url":"https://api.github.com/users/shivpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/shivpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivpatel/subscriptions","organizations_url":"https://api.github.com/users/shivpatel/orgs","repos_url":"https://api.github.com/users/shivpatel/repos","events_url":"https://api.github.com/users/shivpatel/events{/privacy}","received_events_url":"https://api.github.com/users/shivpatel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-11T19:38:25Z","updated_at":"2018-04-11T19:38:25Z","closed_at":null,"author_association":"NONE","body":"Does Mongoose support the functionality added in https://jira.mongodb.org/browse/SERVER-1243 (MongoDB 3.5.12)?\r\n\r\nI am specifically interested in the update all documents in array capability:\r\n\r\n```\r\ndb.coll.update({}, {$set: {“a.$[].b”: 2}})\r\nInput: {a: [{b: 0}, {b: 1}]}\r\nOutput: {a: [{b: 2}, {b: 2}]}\r\n```\r\n\r\nI have tried this syntax style with Mongoose 4.11.9 and 5.0.14 and get the following error:\r\n\r\n`MongoError: '$unset' is empty. You must specify a field like so: {$unset: {<field>: ...}}`"}}
{"actor":{"display_login":"shivpatel"}}