MCPcopy
hub / github.com/pocketbase/pocketbase / OnRecordValidate

Method OnRecordValidate

core/app.go:1017–1017  ·  view source on GitHub ↗

OnRecordValidate is a Record proxy model hook of [OnModelValidate]. If the optional "tags" list (Collection ids or names) is specified, then all event handlers registered via the created hook will be triggered and called only if their event data origin matches the tags.

(tags ...string)

Source from the content-addressed store, hash-verified

1015 // then all event handlers registered via the created hook will be
1016 // triggered and called only if their event data origin matches the tags.
1017 OnRecordValidate(tags ...string) *hook.TaggedHook[*RecordEvent]
1018
1019 // ---------------------------------------------------------------
1020

Calls

no outgoing calls