Skip to content
Back

Not giving Relationship data from collection

  • 0
  • Databases
Taussy10
17 Feb, 2025, 18:20

So , I've created two collections in database named as foodCategories and foodCategoriesItems. in foodCategories: I've for attributes: title , description , icon and relationship attribute with food CategoriesItem.

In foodCategoriesItems: I've attribute like: icon , name , price

When I trying to list foodCategories collection data then in relationship section instead of getting data I'm getting object even though foodCategory have the realtions and have the value of it.

In first image see: foodCategoriesItem realtionship have value In 2nd image: I'm getting object instead of data.

So , how can I get data ?

TL;DR
Issue: Relationship data not showing in foodCategories collection, only objects are displaying instead of actual data. Solution: Ensure the relationship attribute in foodCategories collection is properly linked to the foodCategoriesItems data. Check that the relationship is correctly set up in the database and adjust as needed for proper data retrieval.
Taussy10
17 Feb, 2025, 18:57

@Steven can you help

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