Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typeorm get data from a table by array of id

const posts = await manager.createQueryBuilder(Post, "post")
    .where("post.authorId IN (:...authors)", { authors: [3, 7, 9] })
    .orderBy("post.createDate")
    .getMany();
Source by github.com #
 
PREVIOUS NEXT
Tagged: #typeorm #data #table #array #id
ADD COMMENT
Topic
Name
4+8 =