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
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)
- DB Relational Table Request
Hi, I'd like to suggest a rewording of the relationships between tables. - Current wording: storeOperatingDays can contain one storeId ...
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...