SetExpand replaces the current Record's expand with the provided expand arg data (shallow copied).
(expand map[string]any)
| 682 | |
| 683 | // SetExpand replaces the current Record's expand with the provided expand arg data (shallow copied). |
| 684 | func (m *Record) SetExpand(expand map[string]any) { |
| 685 | if m.expand == nil { |
| 686 | m.expand = store.New[string, any](nil) |
| 687 | } |
| 688 | |
| 689 | m.expand.Reset(expand) |
| 690 | } |
| 691 | |
| 692 | // MergeExpand merges recursively the provided expand data into |
| 693 | // the current model's expand (if any). |