
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
- 404 error when navigating to the team fr...
the version i m running is `1.7.4` as far as i can tell everything is working fine except for this weird bug in the video. when monitoring the appwrite and app...
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
