Back

Get more than 25 values from a list attribute

  • 0
  • Databases
  • Flutter
  • Cloud
AndresR
17 Jul, 2024, 18:33

Hello Everyone,

I know how to get more than 25 documents using the limit query and pagination, but I don't know how to get more than 25 values from a document list attribute. I have checked the docs and this discord but I can't find any reference to it.

Thank you for your help.

TL;DR
Issue: Developer unable to retrieve more than 25 values from a String list attribute in a document when fetched from the database in Flutter Dart code. Solution: Currently, there is no direct way to retrieve more than 25 values from a single document in Firestore. To achieve this, consider restructuring the data or implementing a workaround by storing the excess values in another document within the same collection and then querying them separately.
Joshi
17 Jul, 2024, 18:44

Can you be more specific?

AndresR
17 Jul, 2024, 18:48

Yes. I have a document with a String list attribute. When I get the document from the database in my flutter dart code, if the String list attribute has more than 25 values, I only get 25 values. I would like a way to get all values in my String list attribute when I get the document.

Kenny
17 Jul, 2024, 18:57

Are you saying you have a string array attribute in your collection and it only returns the first 25 items of that array?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more