Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sequelize exclude attribute

User
  .findAll({
    attributes: {exclude: ['password']},
    order: [['id','DESC']]})
  .then( users => {
    return reply( ReplyUtil.ok(users) );
  })
  .catch( err => {
    return reply( ReplyUtil.badImplementation(err) );
  });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sequelize #exclude #attribute
ADD COMMENT
Topic
Name
5+1 =