MCPcopy
hub / github.com/pocketbase/pocketbase / OnCollectionCreate

Method OnCollectionCreate

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

--------------------------------------------------------------- OnCollectionCreate is a Collection proxy model hook of [OnModelCreate]. 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 th

(tags ...string)

Source from the content-addressed store, hash-verified

1125 // then all event handlers registered via the created hook will be
1126 // triggered and called only if their event data origin matches the tags.
1127 OnCollectionCreate(tags ...string) *hook.TaggedHook[*CollectionEvent]
1128
1129 // OnCollectionCreateExecute is a Collection proxy model hook of [OnModelCreateExecute].
1130 //

Callers 4

TestCollectionsImportFunction · 0.65
NewTestAppWithConfigFunction · 0.65

Calls

no outgoing calls

Tested by 2

TestCollectionsImportFunction · 0.52