sql escaping on where

Trying to do the following:

where: sql`unaccent(${users.fullName}) ILIKE unaccent('%${input.query}%')`,


But it breaks on the secon unaccent with could not determine data type of parameter $1 . What am I missing? 🤔
Was this page helpful?