{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-connector-cloudant/issues/13","repository_url":"https://api.github.com/repos/strongloop/loopback-connector-cloudant","labels_url":"https://api.github.com/repos/strongloop/loopback-connector-cloudant/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-connector-cloudant/issues/13/comments","events_url":"https://api.github.com/repos/strongloop/loopback-connector-cloudant/issues/13/events","html_url":"https://github.com/strongloop/loopback-connector-cloudant/issues/13","id":147825749,"number":13,"title":"updateAll is not working properly","user":{"login":"svlungade","id":16682702,"avatar_url":"https://avatars.githubusercontent.com/u/16682702?v=3","gravatar_id":"","url":"https://api.github.com/users/svlungade","html_url":"https://github.com/svlungade","followers_url":"https://api.github.com/users/svlungade/followers","following_url":"https://api.github.com/users/svlungade/following{/other_user}","gists_url":"https://api.github.com/users/svlungade/gists{/gist_id}","starred_url":"https://api.github.com/users/svlungade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svlungade/subscriptions","organizations_url":"https://api.github.com/users/svlungade/orgs","repos_url":"https://api.github.com/users/svlungade/repos","events_url":"https://api.github.com/users/svlungade/events{/privacy}","received_events_url":"https://api.github.com/users/svlungade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T17:50:27Z","updated_at":"2016-04-15T08:07:07Z","closed_at":null,"body":"When given an array as input for a field, we are getting TypeError k.match is not a function.\r\n\r\nWe cannot give primary id as where clause in input parameter.\r\n\r\nBoth the issues are for updateAll method"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-connector-cloudant/issues/comments/210347068","html_url":"https://github.com/strongloop/loopback-connector-cloudant/issues/13#issuecomment-210347068","issue_url":"https://api.github.com/repos/strongloop/loopback-connector-cloudant/issues/13","id":210347068,"user":{"login":"svlungade","id":16682702,"avatar_url":"https://avatars.githubusercontent.com/u/16682702?v=3","gravatar_id":"","url":"https://api.github.com/users/svlungade","html_url":"https://github.com/svlungade","followers_url":"https://api.github.com/users/svlungade/followers","following_url":"https://api.github.com/users/svlungade/following{/other_user}","gists_url":"https://api.github.com/users/svlungade/gists{/gist_id}","starred_url":"https://api.github.com/users/svlungade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svlungade/subscriptions","organizations_url":"https://api.github.com/users/svlungade/orgs","repos_url":"https://api.github.com/users/svlungade/repos","events_url":"https://api.github.com/users/svlungade/events{/privacy}","received_events_url":"https://api.github.com/users/svlungade/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T08:07:07Z","updated_at":"2016-04-15T08:07:07Z","body":"TestDocument.updateAll( {id: \"1234\"}, {email: \r\n\r\n\"abcd55@gmail.com\"}, function(err, results) {\r\n     console.log ('result is',results);\r\n                return callback(err, results);\r\n});\r\n\r\nWhere id is a primary key (_id) and the first json is the condition and second is the one to be updated\r\n\r\nThis is what we are trying to do"}}