Set sets the provided key-value data pair into the current Record model directly as it is WITHOUT NORMALIZATIONS. See also [Record.Set].
(key string, value any)
| 849 | // |
| 850 | // See also [Record.Set]. |
| 851 | func (m *Record) SetRaw(key string, value any) { |
| 852 | if key == FieldNameId { |
| 853 | m.Id = cast.ToString(value) |
| 854 | } |
| 855 | |
| 856 | m.data.Set(key, value) |
| 857 | } |
| 858 | |
| 859 | // SetIfFieldExists sets the provided key-value data pair into the current Record model |
| 860 | // ONLY if key is existing Collection field name/modifier. |