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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...