ExaminorOriginal post
Rank 1: Thread
[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
Summary
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.