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
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- Docker Compose MongoDB Setup
everythings work fine but the mongodb fails on startup everytime. log: ``` Generating random MongoDB keyfile... /bin/bash: line 9: : No such file or directory ...
- Auth broken after update from 1.8.0 to 1...
So ive been having issues creating, deleting or updating users on my appwrite instance after i updated from 1.8.0 to version 1.9.0. When trying to create a user...