Back

Relationships - if no permission for nested for one to one relation returns empty array

  • 0
  • Databases
obiwanzenobi
10 Sep, 2023, 21:17

1.4.2 (1.4.1 also) flutter sdk Expected single object but empty array is returned Returns normal json object when user have read permission to relationship collection.

TypeScript
"correctAnswer":[
            
         ],

in console: (image in attachment)

TL;DR
The user is reporting an issue with nested one-to-one relationships in a relationship collection. When read permissions are revoked for one of the two documents, an empty array is returned instead of the expected single object. This issue has been observed on version 1.4.3 of the Flutter SDK. No solution or fix has been provided in the thread.
Acres
10 Sep, 2023, 21:45

Can confirm for many to many as well. Revoked read permissions for one of two documents and got this in return:

TypeScript
[
  { object1 data },
  []
]

For the unreadable document, an empty array is returned.

Drake
15 Sep, 2023, 20:25

@Prateek Banga is the fix for this pending release?

Prateek Banga
19 Sep, 2023, 10:01

@Steven I don't think so, we delivered one bug fix to my knowledge in 1.4.3 which is this one https://discordapp.com/channels/564160730845151244/1146653042696011777

obiwanzenobi
20 Sep, 2023, 23:17

just checked - I'm still able to reproduce it on 1.4.3

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