{"action":"created","issue":{"url":"https://api.github.com/repos/IBM-Swift/Swift-Kuery-ORM/issues/26","repository_url":"https://api.github.com/repos/IBM-Swift/Swift-Kuery-ORM","labels_url":"https://api.github.com/repos/IBM-Swift/Swift-Kuery-ORM/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/IBM-Swift/Swift-Kuery-ORM/issues/26/comments","events_url":"https://api.github.com/repos/IBM-Swift/Swift-Kuery-ORM/issues/26/events","html_url":"https://github.com/IBM-Swift/Swift-Kuery-ORM/pull/26","id":312988884,"number":26,"title":"Add Filtering with QueryParameters","user":{"login":"EnriqueL8","id":30461857,"avatar_url":"https://avatars2.githubusercontent.com/u/30461857?v=4","gravatar_id":"","url":"https://api.github.com/users/EnriqueL8","html_url":"https://github.com/EnriqueL8","followers_url":"https://api.github.com/users/EnriqueL8/followers","following_url":"https://api.github.com/users/EnriqueL8/following{/other_user}","gists_url":"https://api.github.com/users/EnriqueL8/gists{/gist_id}","starred_url":"https://api.github.com/users/EnriqueL8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnriqueL8/subscriptions","organizations_url":"https://api.github.com/users/EnriqueL8/orgs","repos_url":"https://api.github.com/users/EnriqueL8/repos","events_url":"https://api.github.com/users/EnriqueL8/events{/privacy}","received_events_url":"https://api.github.com/users/EnriqueL8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-10T16:01:38Z","updated_at":"2018-04-10T16:10:24Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/IBM-Swift/Swift-Kuery-ORM/pulls/26","html_url":"https://github.com/IBM-Swift/Swift-Kuery-ORM/pull/26","diff_url":"https://github.com/IBM-Swift/Swift-Kuery-ORM/pull/26.diff","patch_url":"https://github.com/IBM-Swift/Swift-Kuery-ORM/pull/26.patch"},"body":"This PR enables filtering in the ORM. It uses the Query Parameters from Kitura.\r\nBy creating a struct as such: \r\n```\r\nstruct MyQuery: QueryParams {\r\n  let name: String\r\n}\r\n```\r\nAnd calling the api as such:\r\n```\r\nModel.findAll(filterOn: MyQuery) { result, error in \r\n  ...\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/IBM-Swift/Swift-Kuery-ORM/issues/comments/380158173","html_url":"https://github.com/IBM-Swift/Swift-Kuery-ORM/pull/26#issuecomment-380158173","issue_url":"https://api.github.com/repos/IBM-Swift/Swift-Kuery-ORM/issues/26","id":380158173,"user":{"login":"ianpartridge","id":1423497,"avatar_url":"https://avatars3.githubusercontent.com/u/1423497?v=4","gravatar_id":"","url":"https://api.github.com/users/ianpartridge","html_url":"https://github.com/ianpartridge","followers_url":"https://api.github.com/users/ianpartridge/followers","following_url":"https://api.github.com/users/ianpartridge/following{/other_user}","gists_url":"https://api.github.com/users/ianpartridge/gists{/gist_id}","starred_url":"https://api.github.com/users/ianpartridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianpartridge/subscriptions","organizations_url":"https://api.github.com/users/ianpartridge/orgs","repos_url":"https://api.github.com/users/ianpartridge/repos","events_url":"https://api.github.com/users/ianpartridge/events{/privacy}","received_events_url":"https://api.github.com/users/ianpartridge/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T16:10:24Z","updated_at":"2018-04-10T16:10:24Z","author_association":"OWNER","body":"Instead of `filterOn:` how about `matching:`?"}}
{"actor":{"display_login":"ianpartridge"}}