Back

[Database] Appwrite Cloud: Relationships returns null

  • 0
  • Databases
  • Flutter
  • Cloud
Hz.Bootlegger
30 Mar, 2024, 08:43

I'm using flutter and while fetching documents from db I'm getting following: I/flutter (29189): {vehicle_code: MC, plate: 34A1234, verifiedVehicle: false, $id: 6607cf431e195895e8be, $createdAt: 2024-03-30T08:37:23.154+00:00, $updatedAt: 2024-03-30T08:37:23.154+00:00, $permissions: [], ownerCompany: null, driver: null, $databaseId: 65bf80f96118726797c8, $collectionId: 660466b547cf578575e1}

as you can see "ownerCompany" and "driver" seems null. But they are not.

Maybe problem occures due to relationships. But Its nonsense. Because related documents are not null too.

TL;DR
Developers had an issue with the Appwrite Cloud where relationships were returning null. The solution was to ensure that all related collections have the same permissions set to be visible.
Hz.Bootlegger
30 Mar, 2024, 08:53

problem solved. All related collections must have same permissions to see

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