FindLike

Exactly the same functionality as findBy, but search for entities using Like clause. The return is an array of the entity.

const where = { name: '%example%' };
const select = { name: true, id: true };
const order = { name: 'ASC' } // options = "ASC" | "DESC" | "asc" | "desc"
const limit = 10

const exampleArray = await this.examplesRepository.findLike(
  {
    where,
    order,
    select,
    limit
  }
  trx,
);

// Find all and select name where name has 'example'

output: [exampleArray]