{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-filters/issues/3","repository_url":"https://api.github.com/repos/strongloop/loopback-filters","labels_url":"https://api.github.com/repos/strongloop/loopback-filters/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-filters/issues/3/comments","events_url":"https://api.github.com/repos/strongloop/loopback-filters/issues/3/events","html_url":"https://github.com/strongloop/loopback-filters/issues/3","id":128560573,"number":3,"title":"Inconsistency between documentation and implementation on fields filter","user":{"login":"githistory","id":3829878,"avatar_url":"https://avatars.githubusercontent.com/u/3829878?v=3","gravatar_id":"","url":"https://api.github.com/users/githistory","html_url":"https://github.com/githistory","followers_url":"https://api.github.com/users/githistory/followers","following_url":"https://api.github.com/users/githistory/following{/other_user}","gists_url":"https://api.github.com/users/githistory/gists{/gist_id}","starred_url":"https://api.github.com/users/githistory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/githistory/subscriptions","organizations_url":"https://api.github.com/users/githistory/orgs","repos_url":"https://api.github.com/users/githistory/repos","events_url":"https://api.github.com/users/githistory/events{/privacy}","received_events_url":"https://api.github.com/users/githistory/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-filters/labels/doc","name":"doc","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"crandmck","id":2925364,"avatar_url":"https://avatars.githubusercontent.com/u/2925364?v=3","gravatar_id":"","url":"https://api.github.com/users/crandmck","html_url":"https://github.com/crandmck","followers_url":"https://api.github.com/users/crandmck/followers","following_url":"https://api.github.com/users/crandmck/following{/other_user}","gists_url":"https://api.github.com/users/crandmck/gists{/gist_id}","starred_url":"https://api.github.com/users/crandmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crandmck/subscriptions","organizations_url":"https://api.github.com/users/crandmck/orgs","repos_url":"https://api.github.com/users/crandmck/repos","events_url":"https://api.github.com/users/crandmck/events{/privacy}","received_events_url":"https://api.github.com/users/crandmck/received_events","type":"User","site_admin":false},"assignees":[{"login":"crandmck","id":2925364,"avatar_url":"https://avatars.githubusercontent.com/u/2925364?v=3","gravatar_id":"","url":"https://api.github.com/users/crandmck","html_url":"https://github.com/crandmck","followers_url":"https://api.github.com/users/crandmck/followers","following_url":"https://api.github.com/users/crandmck/following{/other_user}","gists_url":"https://api.github.com/users/crandmck/gists{/gist_id}","starred_url":"https://api.github.com/users/crandmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crandmck/subscriptions","organizations_url":"https://api.github.com/users/crandmck/orgs","repos_url":"https://api.github.com/users/crandmck/repos","events_url":"https://api.github.com/users/crandmck/events{/privacy}","received_events_url":"https://api.github.com/users/crandmck/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-01-25T15:24:57Z","updated_at":"2016-08-23T23:21:25Z","closed_at":null,"body":"The fields filter in this library accepts array of field names where as the documentation says\r\n\r\n```\r\n{ fields: {id: true, make: true, model: true} }\r\n```"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-filters/issues/comments/241910961","html_url":"https://github.com/strongloop/loopback-filters/issues/3#issuecomment-241910961","issue_url":"https://api.github.com/repos/strongloop/loopback-filters/issues/3","id":241910961,"user":{"login":"crandmck","id":2925364,"avatar_url":"https://avatars.githubusercontent.com/u/2925364?v=3","gravatar_id":"","url":"https://api.github.com/users/crandmck","html_url":"https://github.com/crandmck","followers_url":"https://api.github.com/users/crandmck/followers","following_url":"https://api.github.com/users/crandmck/following{/other_user}","gists_url":"https://api.github.com/users/crandmck/gists{/gist_id}","starred_url":"https://api.github.com/users/crandmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crandmck/subscriptions","organizations_url":"https://api.github.com/users/crandmck/orgs","repos_url":"https://api.github.com/users/crandmck/repos","events_url":"https://api.github.com/users/crandmck/events{/privacy}","received_events_url":"https://api.github.com/users/crandmck/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T23:21:25Z","updated_at":"2016-08-23T23:21:25Z","body":"@superkhau  Did this change when `loopback-filters` was added?  It was almost certainly originally the way it's documented.\r\n\r\nDoes the Node API _only_ accept the array form and not the `{propertyName: <true|false>, propertyName: <true|false>, ... }` form? \r\n\r\nSo, IIUC, [this example ](https://docs.strongloop.com/display/public/LB/Fields+filter#Fieldsfilter-Examples) should be:\r\n`{ fields: [{id: true}, {make: true}, {model: true}] }`\r\nIs that right?\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"crandmck"}}