Hello, I was wondering whether it's possible to somehow create relation documents when creating a parent document?
Let's say I have 2 collections colA and colB. colA having an attribute referencing a document from colB.
Is it possible to create a document in colB while creating a document in colA instead of choosing an existing one?
Keep in mind, relationships are experimental and may cause performance problems.
Yes, you can create related documents. See https://appwrite.io/docs/products/databases/relationships#create-documents
Thanks a lot! I currently don't have any database logic implemented, I believe this is only supported when inserting documents using code? So not possible from within a cloud "Create Document" form?
Recommended threads
- Skip total counts crash the query
Hello, When adding the total parameter (either true, the default, or false) to the listRows function, it raises the following error: `type 'bool' is not a sub...
- Current User Is Not Authorized To Perfor...
I keep getting an error saying the current user is not authorized to perform the requested action, when I'm trying to create a row a table. Permissions have bee...
- Relationships and Realtime
Since now Relationship attributes are only returned when explicitly queried, how does this change reflect in Realtime? If a listener is listening to a row from ...