Query within Hook doesn't work! Why?

After some researchs about javascript async functions, I could solve this problem adding async to the function´s declaration, try/catch inside and await on query. I hope it´s gonna be usefull to someone else.

1 Like