Последняя активность 1729143735

Версия 3a5199361d724b24ca63a3039f759607e879a55f

TypeORM-readme-4.ts Исходник
1const user = new User()
2user.firstName = "Timber"
3user.lastName = "Saw"
4user.age = 25
5await user.save()
6
7const allUsers = await User.find()
8const firstUser = await User.findOneBy({
9 id: 1,
10})
11const timber = await User.findOneBy({
12 firstName: "Timber",
13 lastName: "Saw"
14})
15
16await timber.remove()