Files
ent/examples/o2m2types
Ariel Mashraki 9ab0a28ffe entc/select: add selection api
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/27

Reviewed By: alexsn

Differential Revision: D17164536

fbshipit-source-id: f5caa80b05aff1ef8ec30d7a53256b00380d018c
2019-09-04 07:14:24 -07:00
..
2019-09-04 07:14:24 -07:00
2019-08-26 02:44:29 -07:00

User-Pets O2M Relation

An example for a O2M (one-to-many) relation between a user and its pets.
Each user has many pets, and a pet has one owner. If a user A adds a pet B using the pets edge, B can get its owner using the owner edge.

Generate Assets

go generate ./...