typeorm find with limit

Solutions on MaxInterview for typeorm find with limit by the best coders in the world

showing results for - "typeorm find with limit"
Pedro
18 Jul 2020
1// the FindManyOptions's limit option is called 'take'
2repository.find( { 
3  order: { created: "DESC" }, // order results
4  take: 1 // limit 1
5} )