Hi! ππ»
I have like 800 documents in a collection. Let's say I'd like to get the document at index 271, without having to retrieve all documents. Is that possible by using built in Appwrite SDK functionality? Or should a make an integer attribute storing an index number?
Thanks for reading! π
I don't believe appwrite uses an incrementing id for the documents. So there wouldn't be a way to get the 271st document out of the box. You can add your own id column and use something like a function to set that column on document insertion. You can then put an index on that column so you can filter down to it using appwrite queries.
Thanks for confirming! ππ» I thought maybe I'm overlooking something. I'll go that route. π
Recommended threads
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Appwrite exception: user_unauthorized, t...
After refreshing the app it is working perfectly