o2m2types/

directory
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2021 License: Apache-2.0

README

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 ./...
Run Example
go test

Directories

Path Synopsis
ent
pet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL