[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()
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
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
- In which format should i pass the date?
I have a column with the type `datetime`. So i want to know which format is suitable for passing the date
- Oauth issue
Hi, can anyone help me in the Oauth issue, Its working fine in dev but its showing Invalid redirect during production. I have check the redirect url and all. St...
- Google/Apple OAuth to show continue to "...
hi everyone, I am building a react-native app with expo and appwrite. I have setup an OAuth flow with Google and Apple following this doc (https://appwrite.io/b...