typeorm find code example
Example 1: typeorm findAndCount orderby
userRepository.find({
order: {
name: "ASC",
id: "DESC"
}
});
Example 2: typeorm
npm install typeorm -g
typeorm init --name MyProject --database mysql
userRepository.find({
order: {
name: "ASC",
id: "DESC"
}
});
npm install typeorm -g
typeorm init --name MyProject --database mysql