From f9906e1cdce4351555425609e2f90a5657273b81 Mon Sep 17 00:00:00 2001 From: Ontopic Date: Sat, 24 Apr 2021 10:05:02 +0200 Subject: [PATCH] docs: fix afterChange example --- docs/hooks/collections.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } ```