[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
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...