📜  typeorm find with limit - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:21.961000             🧑  作者: Mango

代码示例1
// the FindManyOptions's limit option is called 'take'
repository.find( { 
  order: { created: "DESC" }, // order results
  take: 1 // limit 1
} )