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
- No proper build logs on fail
I am trying to deploy my vite project on site but build is failing without even showing proper error logs. In image you can see there is not any build error lo...
- available domain shows unavailable
I am trying to deploy my project on site, but while creatiing the site it shows the domain 'insightly' isnt available. even though if i visit https://insightly...
- type generation on same columns in table
is there way to prevent this ? or only need to update column name like table prefix?