#Running custom function when a document is created, deleted or updated
1 messages · Page 1 of 1 (latest)
Absolutely! You can wire up a hook on your collection, sounds like you’d want an after change hook (https://payloadcms.com/docs/hooks/collections#afterchange) read more here https://payloadcms.com/docs/hooks/overview
but im talking about detecting new documents
you need to give this hook thing a document