{"action":"closed","issue":{"url":"https://api.github.com/repos/fuwaneko/loopback-connector-rethinkdb/issues/2","labels_url":"https://api.github.com/repos/fuwaneko/loopback-connector-rethinkdb/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/fuwaneko/loopback-connector-rethinkdb/issues/2/comments","events_url":"https://api.github.com/repos/fuwaneko/loopback-connector-rethinkdb/issues/2/events","html_url":"https://github.com/fuwaneko/loopback-connector-rethinkdb/issues/2","id":74188282,"number":2,"title":"destroyAll missing where in signature","user":{"login":"duffn","id":3457341,"avatar_url":"https://avatars.githubusercontent.com/u/3457341?v=3","gravatar_id":"","url":"https://api.github.com/users/duffn","html_url":"https://github.com/duffn","followers_url":"https://api.github.com/users/duffn/followers","following_url":"https://api.github.com/users/duffn/following{/other_user}","gists_url":"https://api.github.com/users/duffn/gists{/gist_id}","starred_url":"https://api.github.com/users/duffn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duffn/subscriptions","organizations_url":"https://api.github.com/users/duffn/orgs","repos_url":"https://api.github.com/users/duffn/repos","events_url":"https://api.github.com/users/duffn/events{/privacy}","received_events_url":"https://api.github.com/users/duffn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-08T01:34:31Z","updated_at":"2015-05-16T14:43:42Z","closed_at":"2015-05-16T14:43:42Z","body":"In the current version of LoopBack DELETE /model/{id} calls destroyAll. destroyAll needs to look like\r\n`RethinkDB.prototype.destroyAll = function destroyAll(model, where, callback) {`\r\nand evaluate the where to know which document to delete.\r\n\r\nHere's the MongoDB example: https://github.com/strongloop/loopback-connector-mongodb/blob/master/lib/mongodb.js#L633"}}