
i have an attribute called tags which is an array contains ["ForAbsoluteBegginers","superman", "batman", "Iron man"] inside the upload collection. now i wanted to only the the document if tags contains ForAbsoluteBegginers otherwise do not want. this is my code.
async CategoryBegginersInfo(Cateogry:string) {
try {
return await this.databases.listDocuments(
conf.appwriteDatabaseId,
conf.appwriteCollectionId,
[
Query.equal("category", Cateogry),
Query.equal("tags", ["ForAbsoluteBegginers"]),
Query.equal("status", "Approved") // Add this condition
]
);
} catch (error) {
console.error("appwrite service :: CategoryBegginersInfo :: ", error);
return false;
}
}
but it is returning me the empty document the only problem is with this line Query.equal("tags", ["ForAbsoluteBegginers"]), how to get only those document which tags includes ForAbsoluteBegginers
Recommended threads
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: { "name": "upload-whitelist", "type"...
- Looking for Partner
I'm looking for partner for long-term collaborating. Of course, I'll pay for you. If you are interested, Please DM me.
- Issue - Migration From Cloud > Self Host...
Hi team, I’m trying to migrate a few of my Appwrite projects from the cloud to a self-hosted instance. These projects are currently in “archive mode” due to th...
