github.com/koko1123/flow-go-1@v0.29.6/engine/access/rest/request/get_collection.go (about) 1 package request 2 3 const ExpandsTransactions = "transactions" 4 5 type GetCollection struct { 6 GetByIDRequest 7 ExpandsTransactions bool 8 } 9 10 func (g *GetCollection) Build(r *Request) error { 11 err := g.GetByIDRequest.Build(r) 12 g.ExpandsTransactions = r.Expands(ExpandsTransactions) 13 14 return err 15 }