Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

165
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda