MCPcopy
hub / github.com/pocketbase/pocketbase / Unhide

Method Unhide

core/record_model.go:1246–1252  ·  view source on GitHub ↗

Unhide forces to unhide the specified fields from the public safe serialization of the record (even when the collection field itself is marked as hidden).

(fieldNames ...string)

Source from the content-addressed store, hash-verified

1244// Unhide forces to unhide the specified fields from the public safe serialization
1245// of the record (even when the collection field itself is marked as hidden).
1246func (record *Record) Unhide(fieldNames ...string) *Record {
1247 for _, name := range fieldNames {
1248 record.customVisibility.Set(name, true)
1249 }
1250
1251 return record
1252}
1253
1254// PublicExport exports only the record fields that are safe to be public.
1255//

Callers 8

TestRecordOriginalFunction · 0.80
TestRecordFreshFunction · 0.80
TestRecordCloneFunction · 0.80
NewRecordFieldResolverFunction · 0.80
recordAuthResponseFunction · 0.80
autoResolveRecordsFlagsFunction · 0.80
realtimeBroadcastRecordFunction · 0.80

Calls 1

SetMethod · 0.65

Tested by 4

TestRecordOriginalFunction · 0.64
TestRecordFreshFunction · 0.64
TestRecordCloneFunction · 0.64