{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/3683","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/3683/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/3683/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/3683/events","html_url":"https://github.com/strongloop/loopback/pull/3683","id":270596898,"number":3683,"title":"Support options.filter in createChangeStream","user":{"login":"edwardchoh","id":69545,"avatar_url":"https://avatars2.githubusercontent.com/u/69545?v=4","gravatar_id":"","url":"https://api.github.com/users/edwardchoh","html_url":"https://github.com/edwardchoh","followers_url":"https://api.github.com/users/edwardchoh/followers","following_url":"https://api.github.com/users/edwardchoh/following{/other_user}","gists_url":"https://api.github.com/users/edwardchoh/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardchoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardchoh/subscriptions","organizations_url":"https://api.github.com/users/edwardchoh/orgs","repos_url":"https://api.github.com/users/edwardchoh/repos","events_url":"https://api.github.com/users/edwardchoh/events{/privacy}","received_events_url":"https://api.github.com/users/edwardchoh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars1.githubusercontent.com/u/1140553?v=4","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"assignees":[{"login":"bajtos","id":1140553,"avatar_url":"https://avatars1.githubusercontent.com/u/1140553?v=4","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2017-11-02T10:08:42Z","updated_at":"2017-12-14T13:59:09Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/strongloop/loopback/pulls/3683","html_url":"https://github.com/strongloop/loopback/pull/3683","diff_url":"https://github.com/strongloop/loopback/pull/3683.diff","patch_url":"https://github.com/strongloop/loopback/pull/3683.patch"},"body":"### Description\r\n\r\nThe [documentation](https://apidocs.strongloop.com/loopback/#persistedmodel-createchangestream) refers to options.where as a valid argument in createChangeStream. But it is not implemented. This has been called out in #2074, but that had been closed.\r\n\r\nThis fix implements options.where and options.fields for createChangeStream.\r\n\r\n#### Related issues\r\n\r\n<!--\r\nPlease use the following link syntaxes:\r\n\r\n- connect to #49 (to reference issues in the current repository)\r\n- connect to strongloop/loopback#49 (to reference issues in another repository)\r\n-->\r\n\r\n- connect to #2074\r\n\r\n### Checklist\r\n\r\n<!--\r\n- Please mark your choice with an \"x\" (i.e. [x], see\r\nhttps://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments)\r\n- PR's without test coverage will be closed.\r\n-->\r\n\r\n- [x] New tests added or existing tests modified to cover all changes\r\n- [x] Code conforms with the [style\r\n  guide](http://loopback.io/doc/en/contrib/style-guide.html)\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/351717960","html_url":"https://github.com/strongloop/loopback/pull/3683#issuecomment-351717960","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/3683","id":351717960,"user":{"login":"slnode","id":3865961,"avatar_url":"https://avatars2.githubusercontent.com/u/3865961?v=4","gravatar_id":"","url":"https://api.github.com/users/slnode","html_url":"https://github.com/slnode","followers_url":"https://api.github.com/users/slnode/followers","following_url":"https://api.github.com/users/slnode/following{/other_user}","gists_url":"https://api.github.com/users/slnode/gists{/gist_id}","starred_url":"https://api.github.com/users/slnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slnode/subscriptions","organizations_url":"https://api.github.com/users/slnode/orgs","repos_url":"https://api.github.com/users/slnode/repos","events_url":"https://api.github.com/users/slnode/events{/privacy}","received_events_url":"https://api.github.com/users/slnode/received_events","type":"User","site_admin":false},"created_at":"2017-12-14T13:59:09Z","updated_at":"2017-12-14T13:59:09Z","author_association":"NONE","body":"Can one of the admins verify this patch?"}}
{"actor":{"display_login":"slnode"}}