github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/example/federation/reviews/graph/model/models.go (about) 1 package model 2 3 type Product struct { 4 Upc string `json:"upc"` 5 } 6 7 func (Product) IsEntity() {} 8 9 type Review struct { 10 Body string 11 Author *User 12 Product *Product 13 } 14 15 type User struct { 16 ID string `json:"id"` 17 } 18 19 func (User) IsEntity() {}