MCPcopy
hub / github.com/pocketbase/pocketbase / appendValue

Method appendValue

core/field_select.go:249–258  ·  view source on GitHub ↗
(record *Record, modifierValue any)

Source from the content-addressed store, hash-verified

247}
248
249func (f *SelectField) appendValue(record *Record, modifierValue any) {
250 val := record.GetRaw(f.Name)
251
252 val = append(
253 list.ToUniqueStringSlice(val),
254 list.ToUniqueStringSlice(modifierValue)...,
255 )
256
257 f.setValue(record, val)
258}
259
260func (f *SelectField) prependValue(record *Record, modifierValue any) {
261 val := record.GetRaw(f.Name)

Callers

nothing calls this directly

Calls 3

setValueMethod · 0.95
ToUniqueStringSliceFunction · 0.92
GetRawMethod · 0.80

Tested by

no test coverage detected