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

115
Visualizações
FeathersJS client querying compare two columns

In one of my project I need to filter the instances that a column A is greater than a column B of the same model and I did not find in the documentation how to make a reference to other column within the query object.

I have tried the following query objects but none of them worked

this.$service("model").find({
    query: {
        A: {
            $gte: "B"
        }
    }
});

this.$service("model").find({
    query: {
        A: {
            $gte: {
                col: "B"
            }
        }
    }
});

this.$service("model").find({
    query: {
        A: {
            $gte: {
                $col: "B"
            }
        }
    }
});

I have read that using sequelize.col could help but I don't know how to use it since I am requesting this from the frontend using websockets as transport.

Thanks in advance

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