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
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...
- My organization's project is blocked
My organization's project is blocked so unblocked my organization then I will this