github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/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 }