Im trying to execute a function but every time it fails saying "getAllModules.then is not a function".
What could be happening?
I will attach an image of my code to this message in case it helps
You're using await instead of returning the promise. Looks at the example code in the docs.
https://appwrite.io/docs/products/databases/documents#list-documents
This is also a good read to understand the difference between promise and async/await. 👍 https://www.freecodecamp.org/news/async-await-and-promises/
thanks I'll take a look 👀
Recommended threads
- Using Binary Log with Appwrite
If I can remember correctly appwrite uses mariaDB as the underlying database. If so could I use mariaDB’s binary log to see database operations from appwrite?
- 500 Internal Error on Free Plan Projects...
Hello Appwrite Support Team, I am experiencing a 500 Internal Server Error when trying to access my free plan projects in the Appwrite Cloud console. Project ...
- Internal 500 Error
Hi team I have two projects on the free plan currently. On the cloud console i cannot access either of them, and one of my apps that is in production is not wo...