{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/281","repository_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb","labels_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/281/comments","events_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/281/events","html_url":"https://github.com/strongloop/loopback-connector-mongodb/issues/281","id":173996096,"number":281,"title":"Extended operators does not work with updateAttributes()","user":{"login":"perkd","id":2082946,"avatar_url":"https://avatars.githubusercontent.com/u/2082946?v=3","gravatar_id":"","url":"https://api.github.com/users/perkd","html_url":"https://github.com/perkd","followers_url":"https://api.github.com/users/perkd/followers","following_url":"https://api.github.com/users/perkd/following{/other_user}","gists_url":"https://api.github.com/users/perkd/gists{/gist_id}","starred_url":"https://api.github.com/users/perkd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perkd/subscriptions","organizations_url":"https://api.github.com/users/perkd/orgs","repos_url":"https://api.github.com/users/perkd/repos","events_url":"https://api.github.com/users/perkd/events{/privacy}","received_events_url":"https://api.github.com/users/perkd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-30T11:36:11Z","updated_at":"2016-09-23T11:36:31Z","closed_at":null,"body":"Works fine with updateAll() but not updateAttributes(), for example:\r\n\r\n`anInstance.updateAttributes({name: 'abc', '$inc': { count: 1 }}, { allowExtendedOperators: true }, callback);`\r\n\r\nSeems that the extended operators are filtered/removed before reaching the mongo connector?"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/comments/249169451","html_url":"https://github.com/strongloop/loopback-connector-mongodb/issues/281#issuecomment-249169451","issue_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/281","id":249169451,"user":{"login":"habbes","id":8460169,"avatar_url":"https://avatars.githubusercontent.com/u/8460169?v=3","gravatar_id":"","url":"https://api.github.com/users/habbes","html_url":"https://github.com/habbes","followers_url":"https://api.github.com/users/habbes/followers","following_url":"https://api.github.com/users/habbes/following{/other_user}","gists_url":"https://api.github.com/users/habbes/gists{/gist_id}","starred_url":"https://api.github.com/users/habbes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habbes/subscriptions","organizations_url":"https://api.github.com/users/habbes/orgs","repos_url":"https://api.github.com/users/habbes/repos","events_url":"https://api.github.com/users/habbes/events{/privacy}","received_events_url":"https://api.github.com/users/habbes/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T11:36:31Z","updated_at":"2016-09-23T11:36:31Z","body":"The result object passed to the callbback from the `updateAttributes` in the connector code is not the same one you get in the callback from the model's `instance.updateAttributes` method..."}}
{"actor":{"display_login":"habbes"}}