Rank 1: Thread
I have relational db so that multiple clients can be added to an agreement, i have created the many to one relation in appwrite db, but i don't know how upload clients when using, createDocument() function?
Votes
1
Replies
9
Participants
Unknown
Messages
10
Rank 1: Thread
I have relational db so that multiple clients can be added to an agreement, i have created the many to one relation in appwrite db, but i don't know how upload clients when using, createDocument() function?
Admin
Maybe this will help: https://appwrite.io/docs/databases-relationships#create-documents
You can also create the documents as assign via ID of the document
Admin
How to create related documents
Rank 3: Container
Furthermore, I am able to pass the related document ID when creating a relation with documents. However, this only works with the "Two-way relationship" option. If I try to do the same with the "One-way relationship" option, I receive an error.
Admin
Please create a separate post with details like your code, your collections, and the error message
Rank 1: Thread
@Steven thanks, I figured it out, I had to pass a list of client ids.
Moderator
@rafaat Can I mark this as solved?
Moderator
Or you need help with anything else?
Rank 1: Thread
@D5 thanks, you can mark it.
Moderator
[SOLVED] How to create related documents