Back

When I tried to write a equal query it gives me an exceptionHere is the snippet:

  • 0
  • Web
proLINE
10 Apr, 2024, 11:30

const response = await databases.listDocuments( DATABASEID, COLLECTIONID_MESSAGES, [ Query.equal('from_user',user.$id), ] );

expected: I should recive some documents but it is not happening recieved : Uncaught (in promise) AppwriteException: Invalid query: {"method":"equal","attribute":"from_user","values":["6615616bc019b68f002b"]}

My current version : appwrite 13.0.2 mac OS #🗂│support

TL;DR
Developers are encountering an exception when writing an equal query using the Appwrite SDK. The error message suggests an issue with the query syntax. Check the documentation for the correct format. This issue might be related to a known problem with the Appwrite framework, indicated in a GitHub thread. Make sure to verify the Appwrite version being used.
darShan
10 Apr, 2024, 11:49

Appwrite Cloud or Self Hosted?

darShan
10 Apr, 2024, 11:50

Assuming this is the same as this thread - https://github.com/appwrite/appwrite/issues/7944

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