Back

How to select related data in AppWrite back-end?

  • 1
  • Databases
  • Web
Mr English
9 May, 2024, 07:46

I am building a simple blogging system. I have Posts and Categories. The Categories have their own collection. I want to include a Category in every post. One category can have many posts. To test this, I want to created to a posts in AppWrite. When choosing a category, I cannot see the category name, only what appears to be the document id. Is there a way to select by name?

TL;DR
Developers want to select categories by name in AppWrite back-end for a blogging system. When choosing a category for posts, only document ids are visible. To achieve this, developers can create a query to retrieve the category document by its name before associating it with a post.
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