I'm using a many to many relationship in a collection called Classes (relationship to a collection called Teachers). I have a teacher in a particular document, but it appears empty in the document.
["teachers": AnyCodable([[]]), "$createdAt": AnyCodable("2023-10-29T17:32:35.505+00:00"), "$id": AnyCodable("1"), "description": AnyCodable("How to fix iPhones"), "title": AnyCodable("iPhone Fixing"), "$updatedAt": AnyCodable("2023-11-07T21:21:33.373+00:00"), "$collectionId": AnyCodable("1"), "students": AnyCodable([]), "$databaseId": AnyCodable("1"), "$permissions": AnyCodable(["read("team:1")", "update("team:1")"])]
I can't seem to update the document in code either. Thoughts?
Empty Relationships
perhaps the user doesn't have permissions to the related collection/documents?
Hmm odd. Just to check. I turned document security off. Added it back and now I can see it. Very strange. Thanks for the thought.
[SOLVED] Empty Relationships
Recommended threads
- updateSession not working anymore
Was something changed recently on Cloud since updateSession is no longer working and I get 400 when calling it, with following error: ``` { "message": "The...
- API returned 400
Hey, since I upgraded to Docker Engine v29 on macOS, I keep getting errors `time="2025-11-26T22:33:36Z" level=error msg="Provider connection error Error respons...
- AnyCodable not exposed in iOS SDK
I want to write some convenience functions for Teams.list() but the problem is, that I can't use the default <[String : AnyCodable]> as a return type for my con...