Back

category

  • 0
  • Flutter
kanhaiya lal bohra
7 May, 2023, 10:08

Hi I'm trying to create a question app for a competitive exam I'm using appwrite in appwrite i have a Database with questions where two collection is available one is category and other is questions related to category like in category collection i have a document name UPSC with collection id of UPSC questions so i can get the all questions but now before i want to add more options under upsc list don't want to show all questions i want to show options like gk maths etc in when someone click on any option in want to show all questions related to that category like all questions in upsc maths i can create a category of upsc category then a can show category but i want to find a easy solution appwrite don't have option to add category as a attribute i can compare a string to but i just want to find a easy option anyone can help me

TL;DR
The user wants to create a question app using Appwrite. They have a database with a collection called 'category' and another collection called 'questions' related to each category. They want to add more options under the 'UPSC' category, such as 'GK' and 'maths', and show questions related to each option when clicked. The user is looking for an easy solution since Appwrite does not have an option to add category as an attribute. Solution: In Appwrite, you can only have a questions collection with the category as a string attribute. You can filter the questions based on the category attribute to show all questions
Drake
7 May, 2023, 14:40

Can you only have a questions collection with category as a string attribute? Then, you can filter based on that attribute

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more