Skip to content
Back

I am trying to create a blog posting website in appwrite, I am having issue in that

  • 0
  • Databases
  • Web
  • Cloud
Ashish
26 Dec, 2024, 16:12

I am trying to create a blog website, in that I am having categories, categories is a different collection and blogs having different collection, I want to get blogs on the catgories basis , as I am trying to create a filter this is collection for categories and blogs

I am getting this while I call posts [ { "title": "post 1", "content": "asdf dsfasd fsdf sfsdaf sdfsa dsfsad fsdafs dafsadf sf sdfasfsa fsdf safas", "$id": "676d7ebe0018ac3cd99f", "$createdAt": "2024-12-26T16:05:18.820+00:00", "$updatedAt": "2024-12-26T16:05:18.820+00:00", "$permissions": [], "cat": [ { "name": "bootstrap", "$id": "676d7d990037e790e966", "$createdAt": "2024-12-26T16:00:26.292+00:00", "$updatedAt": "2024-12-26T16:00:26.292+00:00", "$permissions": [], "$databaseId": "676d06010009cae63ccc", "$collectionId": "676d7d6b001146714f74" } ], "$databaseId": "676d06010009cae63ccc", "$collectionId": "676d7cfb0023161fc848" },

]

now, How I can filter data on the basis of categories

TL;DR
Developers are seeking help in creating a blog posting website in Appwrite and facing filtering issues based on categories. They want to retrieve blogs based on categories. The solution is to query categories to filter the data according to the selected category.
joe_2512 <-- UBI
26 Dec, 2024, 21:18

just querry categories...$

joe_2512 <-- UBI
26 Dec, 2024, 21:18

like get the document which represents the categorie and you get all the related blogs? @Ashish

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