Since you have a .then() function to handle the Promise returned by the query, the use of await is incorrect and will lead to errors and unpredictable results. You should delete await from both query statements.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Query in a FOR loop | 6 | 5245 | February 22, 2019 | |
| async function with a foreach loop | 5 | 1450 | September 23, 2019 | |
| TO BE UPDATE - Result query out of query | 13 | 473 | March 24, 2018 | |
| Async / Await help (two queries one inside the other) | 3 | 363 | January 19, 2019 | |
| Problems with Getting a query to work | 9 | 352 | February 1, 2018 |