diff --git a/docs/hooks/collections.mdx b/docs/hooks/collections.mdx index ec0522007e..ba5a9cf7b8 100644 --- a/docs/hooks/collections.mdx +++ b/docs/hooks/collections.mdx @@ -106,7 +106,7 @@ const afterChangeHook = async ({ req, // full express request operation, // name of the operation ie. 'create', 'update' }) => { - return data; + return doc; } ```