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
- SSL Certificate Failure - Using Appwrite...
When we attempt to apply our custom domain to our appwrite site, we consistently receive the following error. [23:44:49] Processing SSL certificate issuance. ...
- [Self-hosted] Realtime crashes with "Mis...
- Regarding Rate Limits
Hello, I am a student engineer who built an internal website for my university club using AppWrite. My club currently has around 500 members, and when I recent...