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

310
Vistas
Can't convert raw SQL to sequelize

I've been trying to convert this particular MariaDB SQL query to sequelzie, but I can't find in the docs anything related to JSON_SEARCH.

SELECT * FROM `table` WHERE JSON_SEARCH(attributes,'all','X') like '"$[%].value1"' and JSON_SEARCH(attributes,'all','Y') like '"$[%].value2"';

The attributes columns is a JSON (longtext) column. Contents have this pattern:

[
{value1:"X", value2:"Y" },
{value1:"a", value2:"b" },
{value1:"c", value2:"d" },
]

Maybe someone has implemented something simimlar, I would highly appreciate the help. Thank you

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