Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typeorm find limit page

// typeorm find example: search with pagination
const video = await connection.getRepository(Video).find({
  where: { title: Like(`%${title}%`) },
  //relations: { exampleRelation1234: true},
  take: Number(limit),
  skip: skip,
});
 
PREVIOUS NEXT
Tagged: #typeorm #find #limit #page
ADD COMMENT
Topic
Name
4+3 =