
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
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- Forever Processing Issue
I encountered an issue when creating attributes in the collections . if you create an attribute of type string for example and choose a size of 200 or 250 or a...
