
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
- Database not found - error
register.ts: ```import { Elysia, t } from 'elysia'; import { account, databases, users } from '../../appwrite manager/appwrite'; import { ID } from 'appwrite'; ...
- Inconsistent Function Execution Times
Hi Appwrite Team, I'm experiencing inconsistent execution times with my functions, and I'd appreciate your insights. I've added detailed logs to my function t...
- enum Invalid document structure characto...
i am getting this error when adding up updating an enum value. I have for example enum attribute which has some enums and also this enum internationale_küche, w...
