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
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Appwrite exception: user_unauthorized, t...
After refreshing the app it is working perfectly