
[Query.equal('accountId', currentAccount.$id)]
THis is the query which I am passing in list ```js
async getCurrentUser(){
try {
let currentAccount = await this.account.get()
TypeScript
if(!currentAccount) throw Error
const currentUser = await this.database.listDocuments(
conf.DATABASE_ID,
conf.USER,
[Query.equal('accountId', currentAccount.$id)]
)
if(!currentUser) throw Error
return currentUser.documents[0]
} catch (error) {
console.log(error);
}
}
}``` but getting error as this is not valid
TL;DR
Developers should ensure they are using the correct version of the SDK. For detailed support, share the exact error messages. The issue within the code snippet seems to be with the query construction. Ensure that the `Query` object is correctly imported and used.
Double check you're using the right version of the SDK.
Fyi, it's best to share exact error messages to give people more detail.
Recommended threads
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- What Happens When You Add a Custom Domai...
