I am using Appwrite to get a list of documents
async getAllBoards(userId) { const queries = [Query.equal("user_id", userId)]; try { return await this.databases.listDocuments( env.appwriteDbId, env.appwriteBoardsColId, queries ); } catch (error) { console.log("Appwrite serive :: getAllBoards :: error", error); return false; } }
but i am getting invalid query. why??
Appwrite serive :: getAllBoards :: error AppwriteException: Invalid query: {"method":"equal","attribute":"user_id","values":["65fbe64139c7b14ffbfc"]} at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=8491bc89:883:17) at Generator.next (<anonymous>) at fulfilled (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=8491bc89:488:24)
I am using appwrite cloud and appwrite SDK v14
For Appwrite Cloud you have to use the SDK v13
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...