{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4726","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4726/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4726/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4726/events","html_url":"https://github.com/sequelize/sequelize/issues/4726","id":113193818,"number":4726,"title":"Select fields when including","user":{"login":"shockwork","id":7187639,"avatar_url":"https://avatars.githubusercontent.com/u/7187639?v=3","gravatar_id":"","url":"https://api.github.com/users/shockwork","html_url":"https://github.com/shockwork","followers_url":"https://api.github.com/users/shockwork/followers","following_url":"https://api.github.com/users/shockwork/following{/other_user}","gists_url":"https://api.github.com/users/shockwork/gists{/gist_id}","starred_url":"https://api.github.com/users/shockwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockwork/subscriptions","organizations_url":"https://api.github.com/users/shockwork/orgs","repos_url":"https://api.github.com/users/shockwork/repos","events_url":"https://api.github.com/users/shockwork/events{/privacy}","received_events_url":"https://api.github.com/users/shockwork/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-24T23:37:50Z","updated_at":"2015-10-25T17:28:42Z","closed_at":"2015-10-25T17:28:42Z","body":"Is it possible to currently select fields when using include? \r\n\r\n__Example:__\r\n``Include.push({ model: UserModel, as: 'Owner', fields: ['email'] });``\r\n\r\nI skimmed through the source, but couldn't find any signs of support for this, but if there is; how can it be done? Currently I loop through the results and remove the fields before sending it to the client but it feels dirty.."},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/150946738","html_url":"https://github.com/sequelize/sequelize/issues/4726#issuecomment-150946738","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4726","id":150946738,"user":{"login":"mickhansen","id":699049,"avatar_url":"https://avatars.githubusercontent.com/u/699049?v=3","gravatar_id":"","url":"https://api.github.com/users/mickhansen","html_url":"https://github.com/mickhansen","followers_url":"https://api.github.com/users/mickhansen/followers","following_url":"https://api.github.com/users/mickhansen/following{/other_user}","gists_url":"https://api.github.com/users/mickhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mickhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickhansen/subscriptions","organizations_url":"https://api.github.com/users/mickhansen/orgs","repos_url":"https://api.github.com/users/mickhansen/repos","events_url":"https://api.github.com/users/mickhansen/events{/privacy}","received_events_url":"https://api.github.com/users/mickhansen/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T17:28:42Z","updated_at":"2015-10-25T17:28:42Z","body":"`attributes` is what you're looking for, rather than `fields`.\r\n\r\nSee `options.include[].attributes`: http://docs.sequelizejs.com/en/latest/api/model/#findalloptions-promisearrayinstance"}}