Exemplo n.º 1
0
// BuildCollection generates a single collection using the model and adapter provided
func (cs *Caddyshack) BuildCollection(m model.Definition, a adapter.Definition) (Caddyshack, error) {
	coll, err := a.BuildCollection(m)
	if err != nil {
		return *cs, err
	}

	cs.Collections[m.Name] = coll
	return *cs, nil
}