Apply for Zend Framework Certification Training

Angular8






async joblist(companyId,cb){
        await models.company_jobs.findAll({ 
        attributes: ['jobStatus', [sequelize.fn('count', sequelize.col('jobsTitle','jobsDescription')),'count']],
        group : ['company_jobs.jobStatus'],
        raw: true,
        where: { companyId:companyId } 
        }).then(result => {
           models.company_jobs.findAll({ where: { companyId:companyId } })
           .then(data1 => {
           totalResult = {'count':result,'dataJobList':data1};
           return cb(null,totalResult);
       });
});
},

< update using sequilize in nodeJs Last >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top