client.query() how to make it syncronious?

Hey All,

So, I am using database client and noticing client.query() is asynchronous - it returns instantaneously. This presents a problem if I want to tie the progress indicator to it via mutable variable. Is there way to make this call synchronous instead?

Answer: await client.query() makes it sync

1 Like