
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
- Realtime Disconnects and Error: INVALID_...
Hi! I just want to ask here if there's any workaround with the disconnect issues we're encountering when subscribing to realtime events in react native using ex...
- Appwrite documents and Swift codable
The object I use to create a document is different than the object I receive when I list documents. Do I create an object that’s used to create a document and a...
- Swift: Response from .deleteDocument
According to the docs, in Swift when calling `databases.deleteDocument` the response is supposed to be 204 (No Content). However, we are finding the response is...
