Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Orderby on multiple columns using typeorm

this.getRepository(User)
      .createQueryBuilder('user')
      .select(["name", "id"])
      .orderBy('user.createdDate', 'ASC')
      .AndOrderBy('user.createdTime', 'ASC')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Orderby #multiple #columns #typeorm
ADD COMMENT
Topic
Name
5+7 =