Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

adonis model use transaction

await created_user.useTransaction(trx).save();
// or
await User.create({
	name: "Joe",
	email: "joe@joe.com",
}, { client: trx });
 
PREVIOUS NEXT
Tagged: #adonis #model #transaction
ADD COMMENT
Topic
Name
3+1 =