MCPcopy
hub / github.com/pocketbase/pocketbase / OnCollectionCreateRequest

Method OnCollectionCreateRequest

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

OnCollectionCreateRequest hook is triggered on each API Collection create request. Could be used to additionally validate the request data or implement completely different persistence behavior.

()

Source from the content-addressed store, hash-verified

1524 // Could be used to additionally validate the request data or implement
1525 // completely different persistence behavior.
1526 OnCollectionCreateRequest() *hook.Hook[*CollectionRequestEvent]
1527
1528 // OnCollectionUpdateRequest hook is triggered on each API Collection update request.
1529 //

Callers 5

collectionCreateFunction · 0.65
TestCollectionCreateFunction · 0.65
NewTestAppWithConfigFunction · 0.65
RegisterFunction · 0.65

Calls

no outgoing calls

Tested by 2

TestCollectionCreateFunction · 0.52