Back

LISTDOCUMENTS isn't working

  • 0
  • Self Hosted
amti
12 Jul, 2024, 22:06

I am facing an issue with querying documents from my Appwrite database. I have a collection where I store appointments, and I'm trying to retrieve all the documents. However, the results are inconsistent: when I change the attribute used in the query, the retrieved information changes, for example, (in my collection the status of my two appointments are "cancelled and pending". But when I request the documents using await databases.listDocuments I get the two documents with status of both cancelled.

TL;DR
Developers experiencing inconsistency with querying documents from their Appwrite database. When using the LISTDOCUMENTS function, results vary depending on the query attribute. For example, all documents show as 'cancelled' even when there are 'cancelled' and 'pending' status. This issue likely stems from query setup or attribute handling. Double-check query configurations and attribute values for accuracy.
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