
TypeScript
let spheresList = await databases.listDocuments(
id1, id2,
[Query.equal('name', [userData?.spheres]),Query.equal('email', [user.email])]
);
There is my code where i get error:
TypeScript
AppwriteException: Invalid query: Equal queries require at least one value.
How I can get document by two equal queries? I use appwrite ^13.0.2 in sveltekit 5
TL;DR
Developers are attempting to fetch documents based on two equal queries using Appwrite version 13.0.2 in SvelteKit 5. The error "Invalid query: Equal queries require at least one value" is encountered. The solution involves passing a single string value to the `Query.equal` method instead of an array.Recommended threads
- Appwrite schema migrations
Hi team, I'm new to Appwrite and wanted to read up on how database schema migrations are handled. I did see the cli collections pull and push commands however, ...
- Email Rate Limiting Issues with Magic Li...
Hi team, I'm experiencing rate limiting issues with email sending during user sign-up and need some guidance. **Setup**: - SvelteKit SPA with Appwrite Cloud (P...
- Appwrite MCP is not working in Cursor
I have tried everything, tried to use the "add to cursor" button, then tired to insert the snippet from https://appwrite.io/docs/tooling/mcp/cursor -- this page...
