Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typeorm find with limit

// the FindManyOptions's limit option is called 'take'
repository.find( { 
  order: { created: "DESC" }, // order results
  take: 1 // limit 1
} )
 
PREVIOUS NEXT
Tagged: #typeorm #find #limit
ADD COMMENT
Topic
Name
8+3 =