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
- Error connecting Github
I have followed the documentation online for setting up VCS and cannot get my Github to properly connect in Functions. When I press the "Connect to Github" I am...
- delete cancelled site deployment
I would like to remove a cancelled site deployment, but the site menu shows only "Redeploy".
- Self-host migration from 1.8.X
Is it safe to now migrate from 1.7.4 to 1.8.X on my selfhost?