Relationship fields returning "$sequence" key when field was not requested (Query.select)
- 0
- Cloud
It looks like today something changed in the backend, I have a project that has certain collections only accessible to teams with specific permissions. Sometimes, these collections are linked to other collections via relationships, so in my client side code I am not selecting the field to be returned when the user doesn't have the permission based on their team. However, now I am seeing even though I did not select the field to be returned, appwrite still returns the following:
"relationship_field": {"$sequence": 0}
This is causing my app to throw errors because it tries to parse this into an object but doesn't have any of the fields it is expecting. Of course I can fix and account for this on my side but not sure if this is intended behavior now.
Previously it would either return null or just an empty structure when not requesting that field
Fyi, relationships are experimental and should be used with caution as they may lead to performance issues and the behavior/API may change
So you're not selecting the relationship_field but it's being returned?
Recommended threads
- Many2Many loading, not receiving list
Hi everyone! Im having a bit of trouble while editing single rows in the DB. When selecting a value of my many2many it keeps loading, see screenshot. On some ...
- SSR Auth with Tanstack Start requires ha...
I followed the Next.js guide for SSR Auth on https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 I tried to replicate it for Tanstack Start. However, on...
- Cannot update relationship value with ev...
I have 2 Tables. One for all Clients (Image 3) and one for projects the clients can create. The problem: I can only assign a handful of clients (Image 1). The r...