conecction.count #252
LeonardoRaimondo
started this conversation in
General
Replies: 2 comments 1 reply
-
thanks for the help and excellent tool. |
Beta Was this translation helpful? Give feedback.
0 replies
-
hi! Cheers |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi!
my query is, how i get the results from connection.count.
Because it tells me that it is a promise.
async function countUser(){
const results = await connection.count({
from: "users"
});
return results
}
console.log(countUser());
in google inspector I get
Promise {}
[[Prototype]]: Promise
[[PromiseState]]: "fulfilled"
[[PromiseResult]]: 0
Beta Was this translation helpful? Give feedback.
All reactions