A hook event that fires for every embedded Document type after conclusion of a creation workflow.
Substitute the Document name in the hook event to target a specific type, for example "createToken".
This hook fires for all connected clients after the creation has been processed.
createDocument
Parameters
document: Document
The new Document instance which has been created
options: DatabaseCreateOperation
Additional options which modified the creation request
userId: string
The ID of the User who triggered the creation workflow
A hook event that fires for every embedded Document type after conclusion of a creation workflow. Substitute the Document name in the hook event to target a specific type, for example "createToken". This hook fires for all connected clients after the creation has been processed.
createDocument