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.
#Getting error AppwriteException: Server Error while using query
1 messages · Page 1 of 1 (latest)
What version of the SDK are you using?
i am using "appwrite": "^14.0.0",
Look at the readme to see what version of Appwrite that SDK version is for
i am using nextjs with appwrite.
i can't see anywhere sdk version.
Look on NPM
its 14.0.0