
await database.listDocuments(
databaseId: dbId,
collectionId: collId,
queries: [
Query.orderDesc("\$id"),
Query.equal("categories", [categoryId]),
],
);
I have added relationship with category
collection and products
collection and now I want to get the list of products of specified category only!
Result: AppwriteException: general_unknown, Server Error (500)


Querying is currently not available in the beta version of Appwrite Relationships but will be added in a later version.

is there any alternative then?

For now?

Only in mimicked relationships

🥱🥴 I'll have to rewrite all the tables now 😦

😕 doesn't sound like fun

should have used other platforms for client's project! I'm tight on deadline

For now to be able to finish the project You can iterate over all the products and add the categories to a new search attribute sepreate with space
Recommended threads
- Issue with Custom Domain Verification - ...
I'm encountering a persistent issue with adding and verifying a custom subdomain in my Appwrite project, and I believe it may be related to an unexpected behavi...
- Flutter docs
Flutter documentation is so bad, the api is for web version and you dont support self host, also you can't find anything, for now im staying with supabase, your...
- Query.unselect([attrubutes])
Can we have Query.unselect([attrubutes]) like we have query.select() because i fetching my rows and i do need all the columns except that $updatedAt. Should i c...
