Is there a way for me to fetch the result of +1 from a table without having to perform a listDocumen
- 0
- Databases
- Web
Is there a way for me to fetch the result of +1 from a table without having to perform a listDocument one by one?
Hi 👋 What do you mean by fetching result of +1? Do I understand correctly you need this to know if there is next page?
I mean to bring the result from more than one collection at once, instead of fetching one by one. Is it possible? @Meldiron
I see. In some scenarios you can use relationships. If an attribute is of type relationship, you automatically get the whole related document. If you cannot use relationships, in most scenarios you can optimize requests to only send as many requests, as many collections you have. This may mean 3 or 4 requests, but that shouldnt take too long. Last option would be to cache, if your queries dont fit into any of those categories. You can achieve client-side caching with localStorage or server-side caching by using Appwrite Functions
ohhh, thanks. my bad about taking up your time with such a simple question, haha. Thank you!
Recommended threads
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...