I got a list of ids and I would like to find in database the corresponding object.
I'm using Nodejs, Typescript, TypeORM and Postgres as database. My ids are UUID.
async findAllByID(id: string[]): Promise<Entity[]> {
const found = await this.model.find({ where: { id } });
return found;
}
It isn't working since I pass a list of string when only a string is expected. What's the solution please ?