Creating a basic search feature where the records are as follows:
AB CD
A BCD
ABC D
ABD C
If the search term is "BCD
", the expected output should be:
AB CD
A BCD
ABC D
The current query looks like this:
await connection.manager
.createQueryBuilder(RefTransaction, 'rt')
.where('rt.key LIKE :searchText',
{searchText: '%' + <searchText> + '%' })
.getRawMany();
How can we modify this to incorporate the MySQL replace function in TypeORM?