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
- Project paused?
Hello, I have two Appwrite projects and I can not resume them for some reason. I'm using the free plan, and I saw in the pricing page that 2 free projects are a...
- Python TablesDB Rework
Hi, i starting to rework some older functions to TablesDB list_rows Method. I used list_documents with a resultset with worked fine. Now i tried to get all rows...
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.