Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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+9 =