TypeORM: How to always format database value in where condition for strings

I would like to use a generic method “exist” given by TypeORM to verify if name is already inserted in database.

My probleme is that I can’t know if name have been inserted in Uppercase or Lowercase and so I can face some false validation and end up inserting twice the same name.

I would like TypeORM and PostgreSQL to always put in lower case the database value (here name) while doing the WHERE condition : WHERE “myname” = valueOfDatabase