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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...