Hello there,
I have a Relationship attribute as shown in the picture. I use pre-existing doctor documents to create a relationship and I noticed that every time I create a document with that relationship set with an existing document, the existing document gets created with a unique id. Is that unusual or is the intended behavior? Thanks
Existing document gets created with a unique id? What do you mean?
I might have misunderstood on how Relationships exactly work. So let me get it straight: Relationship attributes creates a link between documents right?
So for example if collection A has relationship with documents in collection B, and if we want to create a document in collection A with a relationship from a document of collection B that already exists, should the first document from collection A (the one we create) cause the creation of a new document (the one we want to build a relationship with) in collection B?
That seems a little confusing
You can create a document in the related collection or link an existing.
Maybe you can share your code
I implemented that in a production project and I had to quickly find another alternative. I will try to replicate that and share the code
Recommended threads
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...