View documents.go
// List query for all resources matching given constraints.
func (model *Model) List(query *bson.M, context *gin.Context) *[]interface{} {
// Collect all matching objects.
var collector []interface{}
// dataModelType := reflect.TypeOf(model.DataModel)
// // collector := reflect.MakeSlice(reflect.SliceOf(dataModelType), 0, 0).Interface()
// // collector := []reflect.SliceOf(dataModelType)
// collector := []reflect.TypeOf(model.DataModel).Elem()