Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

164
Vistas
Typeorm global where clause

in my database, all tables have a boolean column "active" which is used to know if the row should be returned or not on the query.

As we use TypeORM as our back-end ORM, Is it possible to have a global statement/clause that is "concatenated" on every query made by TypeORM, like:

WHERE column.active = true

So, like this, the rows with the column active with 0 as a value, don't return on TypeORM queries during the main application flow, instead of rewriting it on every queryBuilder or repositories premade queries like "find" or "findOrfail" where we dont even write anything.

  • Need to be in TypeORM because it should be returned on manual queries on sgbd and things like this
  • We use postgre as SGBD
  • Typeorm v0.2.24
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda