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
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...
- Dart 3.10 runtime on self-host 1.8.1
I added dart-3.10 runtime in .env file, applied the changes, but cannot see such option on console. is dart 3.10 not supported by self hosted 1.8.1? if not, whe...
- Guideline of AI
Hello everyone, I’m planning to specialize in Artificial Intelligence (AI) and I’m currently looking for guidance from someone with strong experience in the fi...