{"action":"closed","issue":{"url":"https://api.github.com/repos/tyranid-org/tyranid/issues/19","labels_url":"https://api.github.com/repos/tyranid-org/tyranid/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/tyranid-org/tyranid/issues/19/comments","events_url":"https://api.github.com/repos/tyranid-org/tyranid/issues/19/events","html_url":"https://github.com/tyranid-org/tyranid/issues/19","id":108230407,"number":19,"title":"Collection.update() has surprising semantics","user":{"login":"dimensia","id":228833,"avatar_url":"https://avatars.githubusercontent.com/u/228833?v=3","gravatar_id":"","url":"https://api.github.com/users/dimensia","html_url":"https://github.com/dimensia","followers_url":"https://api.github.com/users/dimensia/followers","following_url":"https://api.github.com/users/dimensia/following{/other_user}","gists_url":"https://api.github.com/users/dimensia/gists{/gist_id}","starred_url":"https://api.github.com/users/dimensia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimensia/subscriptions","organizations_url":"https://api.github.com/users/dimensia/orgs","repos_url":"https://api.github.com/users/dimensia/repos","events_url":"https://api.github.com/users/dimensia/events{/privacy}","received_events_url":"https://api.github.com/users/dimensia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tyranid-org/tyranid/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/tyranid-org/tyranid/labels/pri1","name":"pri1","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-24T23:03:36Z","updated_at":"2015-12-06T01:31:40Z","closed_at":"2015-12-06T01:31:40Z","body":"Collection.update() is currently code that updates a single object that supports the $update() method on instances.\r\n\r\nMaybe rename Collection.update() to Collection.updateOne() or updateDoc() or something and then add in a new Collection.update() method which has similar semantics to the mongo API.\r\n\r\nUpdate upsert(), remove(), etc. have similar issues / should be implemented."}}