Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1K
Views
NestJS: búsqueda que no distingue entre mayúsculas y minúsculas en PostgreSQL

¿Hay alguna forma de hacer una búsqueda que no distinga entre mayúsculas y minúsculas con NestJS en PostgreSQL?

He logrado hacer una búsqueda que distingue entre mayúsculas y minúsculas:

let result = await myRepository.findOne({firstName: fName, lastName: lName});

Estoy tratando de cambiarlo a una búsqueda que no distingue entre mayúsculas y minúsculas.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

La opción ILike debería funcionar para eso:

 import {ILike} from "typeorm"; const loadedPosts = await connection.getRepository(Post).find({ title: ILike("%out #%") });

Ejemplo de https://typeorm.io/#/find-options/advanced-options


Para ILIKE en Postgres, consulte https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-LIKE

La palabra clave ILIKE se puede utilizar en lugar de LIKE para hacer que la coincidencia no distinga entre mayúsculas y minúsculas según la configuración regional activa. Esto no está en el estándar SQL, pero es una extensión de PostgreSQL.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!