ExpandRecord expands the relations of a single Record model. If optFetchFunc is not set, then a default function will be used that returns all relation records. Returns a map with the failed expand parameters and their errors.
(record *Record, expands []string, optFetchFunc ExpandFetchFunc)
| 22 | // |
| 23 | // Returns a map with the failed expand parameters and their errors. |
| 24 | func (app *BaseApp) ExpandRecord(record *Record, expands []string, optFetchFunc ExpandFetchFunc) map[string]error { |
| 25 | return app.ExpandRecords([]*Record{record}, expands, optFetchFunc) |
| 26 | } |
| 27 | |
| 28 | // ExpandRecords expands the relations of the provided Record models list. |
| 29 | // |
nothing calls this directly
no test coverage detected