{ "message": "Invalid query: {method:equal,attribute:accountId,values:[660277c0b25c8e105e95]}", "code": 400, "type": "general_query_invalid", "version": "0.12.128" } this is my code export async function getCurrentUser() { try { const currentAccount = await getActiveSession();
if (!currentAccount) throw new Error("error getting currentAccount");
console.log(currentAccount, currentAccount.$id);
const currentUser = await database.listDocuments(Databaseid, userid, [
Query.equal("accountId", currentAccount.$id),
]);
console.log(currentUser);
if (!currentUser) throw new Error("error getting current user");
return currentUser.documents[0];
} catch (err) { console.log(err); } }
Recommended threads
- Many2Many loading, not receiving list
Hi everyone! Im having a bit of trouble while editing single rows in the DB. When selecting a value of my many2many it keeps loading, see screenshot. On some ...
- Appwrite Python SDK Keeps returning the ...
So I have a couple services, one is a scheduling engine responsible for fetching data from a database and launching a containerized micro service to process tha...
- SSR Auth with Tanstack Start requires ha...
I followed the Next.js guide for SSR Auth on https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 I tried to replicate it for Tanstack Start. However, on...