Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Count Sequelize

MyModel.count({
  include: ...,
  where: ...,
  distinct: true,
  col: 'Product.id'
})
.then(function(count) {
    // count is an integer
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Count #Sequelize
ADD COMMENT
Topic
Name
9+2 =