mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
ent/doc: m2m bidi example
Reviewed By: alexsn Differential Revision: D17051159 fbshipit-source-id: 38a10d91e9d39db5381edc4c1cc4d4fe09655d6e
This commit is contained in:
committed by
Facebook Github Bot
parent
7c3c4ff834
commit
0572a78e4c
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user