wait for a transaction db.tx #849
Unanswered
davidanrod
asked this question in
Q&A
Replies: 1 comment
-
It is a noob question, yes. You simply use await db.tx( async t => {
//do something
})
// execute only after transaction |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
after reading the docs and seeing the examples, i didn't realized how to wait for a transaction to continue the execution of the program..
the basic idea it's something like this,
This is probably a noob question since nodejs it's not my world, and i probably should have more knowladge about promises and async/wait, but if some of you could help at this step, would be nice..
Best,
David.
Beta Was this translation helpful? Give feedback.
All reactions