try {
const userAccount = await database.listDocuments(
process.env.HMSDB,
process.env.HMSCOLLECTION,
[Query.equal('userId', id)]
);
return userAccount;
} catch (error) {
console.log('error', error);
throw error;
}
i am getting "error AppwriteException: Server Error" when i tried to use query. I also created the index with name userId, please some help me.