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
- Deleted my account, trying to signup aga...
https://cloud.appwrite.io/console/login?error=%7B%22message%22%3A%22This+email+address+must+already+be+in+its+canonical+form.+Please+remove+aliases%2C+tags%2C+o...
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I can’t fin...
- Index for combination of columns
How am i suppposed to apply index so that combination of two columns alwasy remain unique in appwrite table though console