FindIn

Exactly the same functionality as findBy, but search for entities in an interval of values. The return is an array of the entity.

const propertyName = { id : 'id' };
const baseData = [3, 4, 6, 7, 8, 9];
const select = { name: true }

const exampleArray = await this.examplesRepository.findIn(
  {
    where: { id: [3, 4, 6, 7, 8, 9] },
    relations: ["relation-1", "relation-2"], // or { "relation-1": true, "relation-2": true }
    order: { id: 'ASC' },
    select,
  },
  trx,
);

// Find all and select name where id in = "3, 4, 6, 7, 8, 9"

output: [exampleArray]