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

114
Vistas
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 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