Back

[SOLVED] Total of documents not matching with response

  • 0
  • Functions
ianmont
7 May, 2023, 21:53

By using reactjs and an usEeffect I am making a request to list all the documents that match a Query that i provided, and then place them in a setState

however I began to notice that new documents that I created did not bring them to me, and when I did the console log of the response , it says that the total is 29, but inside response.documents there are only 24 documents, what could be happening?

I attach a photo about my console log

TL;DR
The user was having an issue where the total number of documents in the response did not match the number of documents in the response. They discovered that the default query limit was set to 25, causing some documents to be excluded. The user solved the issue by increasing the query limit.
ianmont
7 May, 2023, 21:54

I have also noticed that it takes a little longer to bring the documents, maybe 2 seconds

ianmont
7 May, 2023, 22:24

I found the solution, I saw that apparently the query limit is set to 25 by default, this post can be closed

Drake
7 May, 2023, 22:33

FYI, you should be able to update the title to prefix it with [SOLVED]

Drake
7 May, 2023, 22:33

[SOLVED] Total of documents not matching with response

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