
does relationship property working the same as adding FK in another collection

await databases.CreateRelationshipAttribute( databaseId: "marvel", collectionId: "movies", relatedCollectionId: "reviews", type: "oneToMany", twoWay: true, key: "reviews", twoWayKey: "movie", onDelete: "cascade");

what is twoWay mean?

Yes

Have you read the docs? https://appwrite.io/docs/products/databases/relationships#directionality

I have read , missing some part ?

What do you mean?

I dont see the explanation of twoWay

Did you not see this?


😂 nope

so two way, it means creating from either side is the same right

Not exactly. It won't be the same for many to one or one to many. And on delete is different

oh, I tested, it is just way to config, if the info to be shown in both collection or only one collection of the relationship
Recommended threads
- Origin error after changing default port...
Hi! I need some help regarding an issue I’m facing with Appwrite after changing the default ports. I have a self-hosted Appwrite instance running on my VPS. I ...
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
- CSV Import not working
I am running 1.7.4, trying the sample book csv import. I get a pop up saying import started and then a quick follow up saying completed. Nothing ever appears ...
