Skip to content
Back

Not getting relationship values:

  • 0
  • Databases
Taussy10
8 Feb, 2025, 05:11

So , in my project I've 3 collections: properties , reviews and agents. I'm getting data of reviews in my app but not reviews why any reason ?

TL;DR
Check permissions set on both the collections. Ensure that the relationship values are correctly formatted. In this case, the issue may be with how the reviews' relationship values are structured in the app. Double-check and adjust if needed.
Taussy10
8 Feb, 2025, 05:15

For reviews: "reviews": [[Object], [Object]], For agents: "agent": {"$collectionId": "6798bb850018243b4326", "$createdAt": "2025-01-28T16:05:57.012+00:00", "$databaseId": "6798bb3a002bafd474de", "$id": "6799006300053205936a", "$permissions": [Array], "$updatedAt": "2025-01-28T16:05:57.012+00:00", "avatar": "https://images.unsplash.com/photo-1542507464418-09c375b86bbe?q=60&w=640&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdfHx8fGVufDB8fHx8fA%3D%3D", "email": "agent5@example.com", "name": "Agent 5"},

Darshan Pandya
8 Feb, 2025, 05:33

make sure you have correct permissions set on both the collections.

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