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
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...