typeorm get data from a table by array of id

Solutions on MaxInterview for typeorm get data from a table by array of id by the best coders in the world

showing results for - "typeorm get data from a table by array of id"
Erik
29 Apr 2017
1const posts = await manager.createQueryBuilder(Post, "post")
2    .where("post.authorId IN (:...authors)", { authors: [3, 7, 9] })
3    .orderBy("post.createDate")
4    .getMany();