ent/doc: m2m bidi example

Reviewed By: alexsn

Differential Revision: D17051159

fbshipit-source-id: 38a10d91e9d39db5381edc4c1cc4d4fe09655d6e
This commit is contained in:
Ariel Mashraki
2019-08-26 08:00:21 -07:00
committed by Facebook Github Bot
parent 7c3c4ff834
commit 0572a78e4c
24 changed files with 2439 additions and 7 deletions

View File

@@ -1,8 +1,7 @@
# User-Spouse Bidirectional O2O Relation
# Following-Followers M2M Relation
An example for a reflexive O2O relation between a User to its spouse (also a User).
Each user can have only one spouse. If a user A sets its spouse (using `spouse`) to B,
B can get its spouse using the `spouse` edge.
In this following-followers example, we have a M2M relation between users to its followers. Each user
can follow **many** users, and can have **many** followers.
### Generate Assets