Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

397
Views
Knex.js .count() con cláusula where

Tengo una ruta que devuelve estadísticas sobre cotizaciones como estimación total, cotizaciones totales y cotización total donde completo es verdadero o no verdadero.

 function totalCount() { return db('quotes') .count('is_complete', {as: 'total_complete'}) .count('is_complete') .sum('estimate', {as: 'estimate_total'}) .first()

El problema que tengo es obtener la cláusula where en mi consulta knex. Si intenta establecer una cláusula where al comienzo de la consulta, afecta a toda la consulta.

Mi cláusula where es where is_complete = true

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!