
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
- Images not showing up --
so i made this movie app - i hosted it successfully using appwrite but the images arent showing up --- https://movie-app-jsm.appwrite.network/ this is the movie...
- What’s the current approach for always o...
Read that it’s not a thing out of the box, but what’s the possible setup here?
- Error 431 header fields too large
Some times to times when i load or switch the page, it shows an error 431. And on what i saw it'w because of the cookies, when i remove the legacy tokens it wo...
