Answers for "adonis model use transaction"

1

adonis model use transaction

await created_user.useTransaction(trx).save();
// or
await User.create({
	name: "Joe",
	email: "[email protected]",
}, { client: trx });
Posted by: Guest on March-28-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language