Back

[SOLVED] How many documents in a collection can be showed in a web app?

  • 0
  • Web
joelherr09
8 Nov, 2023, 20:49

Is there a limit of documents in a collection that can be showed? I just added 6 documents more in my collection, and my web app is just showing the first one

TL;DR
Solution: The user was experiencing an issue where only the first document in their collection was being shown in their web app. They solved the problem by using queries instead of relying on the default functionality. The issue may have been related to document level permissions, so the user made sure to set read permissions for each document. Additionally, the user mentioned that by default, the listDocuments function only returns at most 25 documents, but this limit can be raised using `Query.limit(number)`.
Kenny
8 Nov, 2023, 20:53

By default the listDocuments function should return at most 25 documents, but that can be raised using Query.limit(number).

D5
8 Nov, 2023, 20:55

Do you have document level permission enabled?

joelherr09
8 Nov, 2023, 20:56

I think this is it. I have 30 documents, Had 24 before add the new 6. I think thats why just show the first one. I will use Query instead

joelherr09
8 Nov, 2023, 20:56

Yes I do

D5
8 Nov, 2023, 20:58

And did you have set read permission for each document?

joelherr09
8 Nov, 2023, 21:00

I set the permissions in the collection

D5
8 Nov, 2023, 21:05

But if you have document level permission enabled and the document doesn't has the permission then you will not be able to access them

D5
8 Nov, 2023, 21:05

If you want all documents being available for everyone then you should turn off document level permission

joelherr09
8 Nov, 2023, 21:13

I fixed using Querys, Thanks for your time guys ❤️

Drake
13 Nov, 2023, 21:05

can this be marked as solved now?

joelherr09
14 Nov, 2023, 04:35

yes

Drake
14 Nov, 2023, 05:16

[SOLVED] How many documents in a collection can be showed in a web app?

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