MCPcopy
hub / github.com/pocketbase/pocketbase / SetRaw

Method SetRaw

core/record_model.go:851–857  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

849//
850// See also [Record.Set].
851func (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.

Calls 1

SetMethod · 0.65