Files
ent/examples/o2obidi
Ariel Mashraki e2b81d2ebc ent/doc: add bidi example for o2o
Reviewed By: alexsn

Differential Revision: D17046623

fbshipit-source-id: caa43ba34e936cc91618ad56f4eb39965e5aadf9
2019-08-25 09:30:36 -07:00
..
2019-08-25 09:30:36 -07:00
2019-08-25 09:30:36 -07:00
2019-08-25 09:30:36 -07:00

User-Spouse Bidirectional O2O 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.

Generate Assets

go generate ./...