"I want to get some attributes of an include table instead of using *, my code right now is this.
module.exports = function(app){
app.get('/post', function(req, res){
model.Post.findAll(
{ attributes: ["body", "id"],
{include: [model.User]).success(function(rows){
res.json(rows);
}
);
});
This works fine , but the query gets some data that i really don't need( password, birth, email) How can i get only , for example the username and avatar of the inlclude table User?