Rank 1: Thread
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