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
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Urgent help required - Could not resolve...
I upgraded my production environment to 1.8.0 but experienced issues with appwrite running out of worker threads. I downgraded back to 1.6.1 and restored the da...
- How to change "collection Id" to "collec...
