Naposledy aktivní 1729143735

TypeORM-readme-4.ts Raw
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()