Back

Invalid query: Syntax error

  • 0
  • Databases
  • Web
criisgese14
11 Mar, 2024, 14:56

Hi. I'm using databases endpoints and i have problem when pass queries.

The endpoint is "databases/databaseId/collections/collectionId/documents?queries[]=equal("username", "#1234")"

TL;DR
Developers are encountering a syntax error when passing queries in the database endpoints. The issue is with the format of the query being used. The correct syntax should be: "databases/databaseId/collections/collectionId/documents?queries[]=equal('username', '#1234')".
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